From: Junio C Hamano Date: Sat, 24 Sep 2005 22:09:48 +0000 (-0700) Subject: git-grep: fix 'git grep -e $pattern' handling X-Git-Tag: v0.99.7d~1^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c9fc748f84857a237f47deb91f87499e82865c83?hp=c9fc748f84857a237f47deb91f87499e82865c83 git-grep: fix 'git grep -e $pattern' handling People typically say 'grep -e $pattern' because $pattern has a leading dash which would be mistaken as a grep flag. Make sure we pass -e in front of $pattern when we invoke grep. Signed-off-by: Junio C Hamano ---