Created
January 30, 2015 01:56
-
-
Save IsTheJack/4066c3a5e4247b87388c to your computer and use it in GitHub Desktop.
git log as JSON...
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
git log --pretty=format:'{%n "commit": "%H",%n "author": "%an <%ae>",%n "date": "%ad",%n "message": "%f"%n},' $@ | perl -pe 'BEGIN{print "["}; END{print "]\n"}' | perl -pe 's/},]/}]/' > commits-log.JSON |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment