Created
April 25, 2017 14:42
-
-
Save objarni/d032f1b875b20c91fc222fd541593439 to your computer and use it in GitHub Desktop.
Neppord
commented
Jun 25, 2017
•
i could not resist putting the result in a sqlite database, in a oneline.
sqlite3 db.db "CREATE TABLE IF NOT EXISTS author_score (sha, lines, email)" ".separator ' '" ".import "<(git log --pretty="%h" master | while read hash ; do { git ls-tree --name-only -r $hash | xargs -n1 git blame --line-porcelain $hash -- ; } | sed -n 's/author-mail //p' | sort | uniq -c | sort -r | xargs -n2 echo $hash ; done)" author_score"
ofc the last sort is probably un needed, but i don't dare to edit this monster ;).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment