1
0
Fork 0

Add git authors command

This commit is contained in:
Gregory Eremin 2017-03-10 11:42:23 +01:00
parent c8ec9f8a7c
commit 03fa491e01
1 changed files with 10 additions and 0 deletions

10
bin/git-authors Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# Git authors statistics
# http://stackoverflow.com/a/13687302
git ls-tree -r -z --name-only HEAD -- $1 \
| xargs -0 -n1 git blame --line-porcelain HEAD \
| grep "^author " \
| sort \
| uniq -c \
| sort -nr