Created
June 14, 2012 15:50
-
-
Save davidmfoley/2931107 to your computer and use it in GitHub Desktop.
summarize git commits and lines changed by author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --shortstat -C | awk '/Author:/ {author = $NF; if (!(author in lines)) {authors[length(authors)] = author; lines[author] = 0; commits[author] = 0} } /files changed/ {lines[author] += ($4 + $6); commits[author]++} END {for (i =0; i < length(authors); i++) {printf "%s lines in %s commits - %s\n", lines[authors[i]],commits[authors[i]], authors[i]}}' |sort -n -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment