diff --git a/bin/git-count b/bin/git-count index d77f51d..a9bd148 100755 --- a/bin/git-count +++ b/bin/git-count @@ -1,7 +1,7 @@ #!/bin/sh if test "$1" = "--all"; then - git shortlog -n $@ | grep "):$" | sed 's|:||' + git shortlog -n -s $@ | awk '{print substr($0,index($0,$2)) " (" $1 ")"}' echo fi