Skip to content

Instantly share code, notes, and snippets.

@LukeWinikates
Created October 23, 2014 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LukeWinikates/ee61671d063e6abd5ba2 to your computer and use it in GitHub Desktop.
Save LukeWinikates/ee61671d063e6abd5ba2 to your computer and use it in GitHub Desktop.
turns git log messages into a running blob of text
#! /usr/bin/ruby
lines = `git log --format=oneline`.lines.reverse
result = lines.map { |l| ws = l.split(" ").drop(1) }.map do |line|
line.join " "
end.join(". ").send(:+, ".").gsub("\.\.", ".")
puts result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment