Skip to content

Instantly share code, notes, and snippets.

@mnogu
Created February 23, 2012 12:06
Show Gist options
  • Select an option

  • Save mnogu/1892559 to your computer and use it in GitHub Desktop.

Select an option

Save mnogu/1892559 to your computer and use it in GitHub Desktop.
git log --date=short | tools/gnuify-changelog.pl
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