From f61e930476c55ccd0fdbcaba150a28644e554c81 Mon Sep 17 00:00:00 2001 From: Nicolai Skogheim Date: Wed, 29 Jul 2015 12:03:45 +0200 Subject: [PATCH] contrib: refactor, and conform to git --- bin/git-contrib | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/git-contrib b/bin/git-contrib index b6f163473..0f9a6bf15 100755 --- a/bin/git-contrib +++ b/bin/git-contrib @@ -4,6 +4,4 @@ user="$*" test -z "$user" && echo "user name required." 1>&2 && exit 1 -count=`git log --oneline --pretty="format: %an" | grep -- "$user" | wc -l` -test $count -eq 0 && echo "$user did not contribute." && exit 1 -git shortlog | grep -A $count -- "$user (" +git shortlog --author="$user"