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