From a67b42711d882832aad2b3dfcd7b2082358ea93f Mon Sep 17 00:00:00 2001 From: go2null <1t1is2@gmail.com> Date: Thu, 28 May 2015 11:54:40 +0000 Subject: [PATCH] FIXes location of `--` for `grep` Broken in 5b1ac3ccc69f65f8670746f5e0b9c14653cf6685 `--` must be after all parameters (options), and before positional arguments See https://unix.stackexchange.com/questions/11376/what-does-double-dash-mean-also-known-as-bare-double-dash --- bin/git-contrib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-contrib b/bin/git-contrib index 1dbea52..b6f1634 100755 --- a/bin/git-contrib +++ b/bin/git-contrib @@ -6,4 +6,4 @@ 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 -- "$user (" -A $count +git shortlog | grep -A $count -- "$user ("