Created
April 7, 2011 04:29
-
-
Save modsognir/907039 to your computer and use it in GitHub Desktop.
quick git log parser
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
features = `git log | grep Feature:` | |
bugs = `git log | grep Bugfix:` | |
refactors = `git log | grep Refactor:` | |
out = "" | |
out += "Features:\n" | |
out += features.gsub('Feature:', "") | |
out += "Bugfixes:\n" | |
out += bugs.gsub('Bugfix:', "") | |
out += "Refactors:\n" | |
out += refactors.gsub('Refactor:', "") | |
puts out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment