diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-12-03 13:51:26 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-12-03 13:51:26 -0800 |
commit | f2c0ca4fae299c2515c1554dbeec2080af5c6792 (patch) | |
tree | 5aedb798c52fee287b45bc85e8bf2e726a5289a9 /t | |
parent | Merge branch 'jk/maint-break-rename-reduce-memory' into maint (diff) | |
parent | grep: Allow case insensitive search of fixed-strings (diff) | |
download | tgif-f2c0ca4fae299c2515c1554dbeec2080af5c6792.tar.xz |
Merge branch 'bc/grep-i-F' into maint
* bc/grep-i-F:
grep: Allow case insensitive search of fixed-strings
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 ae5290ab43..3a103fec96 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 @@ -411,4 +412,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 |