Created
September 17, 2013 17:47
-
-
Save madbook/6597929 to your computer and use it in GitHub Desktop.
gives you a line count per author, can take a while depending on size of project. modify (php|js|html|css) with whatever file extensions you want to check.
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 ls-tree --name-only -r -z HEAD | egrep -z -Z -E '\.(php|js|html|css)$' | xargs -0 -n1 git blame --line-porcelain | grep "^author " | sort | uniq -c | sort -nr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you get an error, check if your version of git supports git blame --line-porcelain