Commit | Line | Data |
---|---|---|
237c6423 | 1 | #!/bin/sh |
b5c3548c JC |
2 | for FILE in "$@"; do |
3 | echo $FILE | |
4 | git blame --line-porcelain -- $FILE | awk '/^author /' | awk '{$1 = ""; author=substr($0, 2); counts[author] += 1} END { for (author in counts) {print counts[author],author,counts[author],counts[author]/NR*100"%"} }' | sort -nr -k 1 | awk '{$1 = ""; print $0}' | |
5 | done |