Skip to content

Instantly share code, notes, and snippets.

@mishin
Forked from preaction/git-leader.sh
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save mishin/551a2f617a822018bc35 to your computer and use it in GitHub Desktop.

Select an option

Save mishin/551a2f617a822018bc35 to your computer and use it in GitHub Desktop.
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