Skip to content

Instantly share code, notes, and snippets.

@GusGA
Created July 29, 2015 02:00
Show Gist options
  • Save GusGA/8a8a9f04a30b94d836d4 to your computer and use it in GitHub Desktop.
Save GusGA/8a8a9f04a30b94d836d4 to your computer and use it in GitHub Desktop.
lines_by_commiter
git log --numstat --pretty="%H" --author=$1 | grep -v "public/" | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment