11 ms·
To count by author: git log --numstat --no-merges --pretty=format:%an | awk ' author == "" { author = $0; next } /^$/ { author
by porges 13y ago
To count by author:
git log --numstat --no-merges --pretty=format:%an
| awk '
author == "" { author = $0; next }
/^$/ { author = ""; next }
{ added[author] += $1; removed[author] += $2 }
END { for (author in added) {
print author, "added", added[author], "removed", removed[author], "sum", added[author]-removed[author]
} }'
| sort -n -k 7
- taybin 13y agoThat is great! Thank you.