Skip to content

Commit

Permalink
Simplify git thanks implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Dec 10, 2015
1 parent 62ca947 commit f447898
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions bin/git-thanks
Expand Up @@ -3,10 +3,6 @@
#
# Show authorship info sorted by the number of commits during `<range>`.

git log "$1" |
grep Author: |
sed 's/Author: \(.*\) <.*/\1/' |
sort |
uniq -c |
sort -rn |
sed 's/ *\([0-9]\{1,\}\) \(.*\)/\2 (\1)/'
git log --format='%an' "$1" | \
sort | uniq -c | sort -rn | \
sed 's/ *\([0-9]\{1,\}\) \(.*\)/\2 (\1)/'

0 comments on commit f447898

Please sign in to comment.