diff --git a/bin/git-thanks b/bin/git-thanks index 86ed1f8..938793a 100755 --- a/bin/git-thanks +++ b/bin/git-thanks @@ -3,10 +3,6 @@ # # Show authorship info sorted by the number of commits during ``. -git log "$1" | - grep Author: | - sed 's/Author: \(.*\) <.*/\1/' | - sort | - uniq -c | - sort -rn | - sed 's/ *\([0-9]\{1,\}\) \(.*\)/\2 (\1)/' \ No newline at end of file +git log --format='%an' "$1" | \ + sort | uniq -c | sort -rn | \ + sed 's/ *\([0-9]\{1,\}\) \(.*\)/\2 (\1)/'