Skip to content

Instantly share code, notes, and snippets.

@niltonvasques
Created July 21, 2017 04:27
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 niltonvasques/b28535022b74b1a19f79fc5578820e34 to your computer and use it in GitHub Desktop.
Save niltonvasques/b28535022b74b1a19f79fc5578820e34 to your computer and use it in GitHub Desktop.
Collect some metrics from some author on git history
#!/bin/bash
AUTHOR=zequinha
git log origin/master..HEAD --shortstat --author=$AUTHOR | grep "files changed" | awk '{ FILES += $1; INS += $4; DEL += $6 } END { print FILES,INS,DEL }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment