diff --git a/bin/git-count b/bin/git-count index 566d28c36..cad0df5cb 100755 --- a/bin/git-count +++ b/bin/git-count @@ -1,7 +1,9 @@ #!/usr/bin/env sh -if test "$1" = "--all"; then - git shortlog | grep "):" | sed 's|:||' +arg=$1; shift +if test "$arg" = "--all"; then + git shortlog -n $@ | grep "):" | sed 's|:||' + echo fi echo total `git log --oneline | wc -l` \ No newline at end of file