benjamincharity
5/4/2017 - 2:13 PM

Get a count of lines by author for a git repo

Get a count of lines by author for a git repo

git ls-files | while read f && do git blame --line-porcelain $f | grep '^author ' && done | sort -f | uniq -ic | sort -n