From 7a60cd1710a092e48ed1ccfb41a10750e7c430b1 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Wed, 4 Aug 2010 08:56:54 -0700 Subject: [PATCH] Passing args to git shortlog --- bin/git-count | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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