mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 23:46:24 -04:00
FIXes location of -- for grep
Broken in 5b1ac3ccc6
`--` 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
This commit is contained in:
parent
c7635f8f21
commit
a67b42711d
|
|
@ -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 ("
|
||||
|
|
|
|||
Loading…
Reference in a new issue