git-grep: fix 'git grep -e $pattern' handling
authorJunio C Hamano <junkio@cox.net>
Sat, 24 Sep 2005 22:09:48 +0000 (15:09 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 24 Sep 2005 22:09:48 +0000 (15:09 -0700)
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 <junkio@cox.net>
No differences found