diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-22 16:28:29 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-22 16:28:29 -0800 |
commit | 3fa384d27e79d4731a9188716f566fa423a8ff50 (patch) | |
tree | d3d262941f13e28c4ed27ee293e86f33689700bd /t/t7002-grep.sh | |
parent | a1b01c45d58bba35ec1c2533dfb8d87cfa08b19e (diff) | |
parent | 5183bf67278ce5a0da9779d74f05169beac219b8 (diff) | |
download | git-3fa384d27e79d4731a9188716f566fa423a8ff50.tar.gz |
Merge branch 'bc/grep-i-F'
* bc/grep-i-F:
grep: Allow case insensitive search of fixed-strings
Diffstat (limited to 't/t7002-grep.sh')
-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 dd0da6c0bf..abd14bf819 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 @@ -416,4 +417,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 |