diff options
author | Brian Collins <bricollins@gmail.com> | 2009-11-06 12:22:35 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-17 03:06:46 +0300 |
commit | 5183bf67278ce5a0da9779d74f05169beac219b8 (patch) | |
tree | 3ff2119ec35588228c723069b1f21b061ac1c18d /t | |
parent | 78d553b7d7b269bb22ebd8b1198657c37484a3a0 (diff) |
grep: Allow case insensitive search of fixed-strings
"git grep" currently an error when you combine the -F and -i flags.
This isn't in line with how GNU grep handles it.
This patch allows the simultaneous use of those flags.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Brian Collins <bricollins@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t7002-grep.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh index ae56a36eac..35a1e7a5d4 100755 --- a/t/t7002-grep.sh +++ b/t/t7002-grep.sh @@ -14,6 +14,7 @@ int main(int argc, const char **argv) { printf("Hello world.\n"); return 0; + /* char ?? */ } EOF @@ -345,4 +346,13 @@ test_expect_success 'grep from a subdirectory to search wider area (2)' ' ) ' +cat >expected <<EOF +hello.c:int main(int argc, const char **argv) +EOF + +test_expect_success 'grep -Fi' ' + git grep -Fi "CHAR *" >actual && + test_cmp expected actual +' + test_done |