LOC Per Author

Git

Get number of lines contributed per each author in a git repository

sh

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