Created
October 23, 2014 20:17
-
-
Save LukeWinikates/ee61671d063e6abd5ba2 to your computer and use it in GitHub Desktop.
turns git log messages into a running blob of text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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