Skip to content

Instantly share code, notes, and snippets.

@danmayer
Created May 17, 2014 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danmayer/2288a470c5d83616c489 to your computer and use it in GitHub Desktop.
Save danmayer/2288a470c5d83616c489 to your computer and use it in GitHub Desktop.
git log mining
#specific commiter
git log --numstat --pretty="%H" --author="dan.mayer" --since="2 years ago" app | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}
#team total
git log --numstat --pretty="%H" --since="2 years ago" app | 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