author | Junio C Hamano <junkio@cox.net> | |
Sat, 24 Sep 2005 22:09:48 +0000 (15:09 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 24 Sep 2005 22:09:48 +0000 (15:09 -0700) | ||
commit | c9fc748f84857a237f47deb91f87499e82865c83 | |
tree | a4b6974079bfa443384a8772c0d18fe7afbae8be | tree | snapshot |
parent | dc56bc034176d76ce95e9ba7636e3551d51dc897 | commit | diff |
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 <junkio@cox.net>
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>
git-grep.sh | diff | blob | history |