Created
February 23, 2012 12:06
-
-
Save mnogu/1892559 to your computer and use it in GitHub Desktop.
git log --date=short | tools/gnuify-changelog.pl
This file contains hidden or 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
| my $author; | |
| while (<>) { | |
| next if /(^commit|^Merge|git-svn-id)/; | |
| # axe windows style line endings, since we should try to be consistent, and | |
| # the repos has both styles in it's log entries. | |
| s/\r\n$/\n/; | |
| if (/^Author/) { | |
| $author = (split / /)[1]; | |
| next; | |
| } | |
| if (/^Date/) { | |
| chomp; | |
| my $date = (split / +/)[1]; | |
| print $date . ' ' . $hackers{$author} . "\n"; | |
| next; | |
| } | |
| print; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment