Skip to content

Commit

Permalink
FIXes location of -- for grep
Browse files Browse the repository at this point in the history
Broken in 5b1ac3c

`--` 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
  • Loading branch information
go2null committed May 28, 2015
1 parent c7635f8 commit a67b427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-contrib
Original file line number Diff line number Diff line change
Expand Up @@ -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 ("

0 comments on commit a67b427

Please sign in to comment.