Skip to content

Instantly share code, notes, and snippets.

@preaction
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save preaction/eb6c88a7f98d9031b46e to your computer and use it in GitHub Desktop.

Select an option

Save preaction/eb6c88a7f98d9031b46e to your computer and use it in GitHub Desktop.
leaderboard for git
git log --shortstat | awk '/Author|changed/' | perl -lne'if ( /^Author: (.+)/ ) { $author = $1 } else { while ( /(?:(\d+) (?:insertions|deletions))/g ) { $changes{ $author } += $1 } } END { print "$changes{$_} $_" for keys %changes }'
# 2674 Doug Bell <doug.bell@baml.com>
# 18332 Doug Bell <madcityzen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment