Skip to content

Instantly share code, notes, and snippets.

@felipehummel
Created September 22, 2011 21:02
Show Gist options
  • Save felipehummel/1236045 to your computer and use it in GitHub Desktop.
Save felipehummel/1236045 to your computer and use it in GitHub Desktop.
Prints an author rank based on the number of lines added/removed in a git repository
git log | grep 'Author' | sed 's/<.*>//g' | sed 's/Author: //g' | sort | uniq | xargs -I {} bash -c "echo -n \"{}= \" ; git log -p --author='{}' --oneline | grep -c -e '^[+-]'" | sort -t '=' -g -k 2 -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment