We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72ceb16 commit ad24ebeCopy full SHA for ad24ebe
bin/git-authors.sh
@@ -1,10 +1,12 @@
1
#!/bin/sh
2
3
+# Enforce being in a git repository
4
+git rev-parse --is-inside-work-tree >/dev/null || exit $?
5
+
6
# save as i.e.: git-authors and set the executable flag
7
git ls-tree -r -z --name-only HEAD -- "${1}" \
8
| xargs -0 -n1 git blame --line-porcelain HEAD \
9
| grep "^author " \
10
| sort \
11
| uniq -c \
12
| sort -nr
-
0 commit comments