From bb721be895023a2718b2327940cc0732b2798da5 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Wed, 4 Aug 2010 08:52:54 -0700 Subject: [PATCH] Added --all support to git-count --- bin/git-count | 5 +++++ 1 file changed, 5 insertions(+) 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