aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-12-03 13:51:26 -0800
committerJunio C Hamano <gitster@pobox.com>2009-12-03 13:51:26 -0800
commitf2c0ca4fae299c2515c1554dbeec2080af5c6792 (patch)
tree5aedb798c52fee287b45bc85e8bf2e726a5289a9 /t
parent9a6b9cdd7240d10f9e70bfc383960b28c8f2b9a7 (diff)
parent5183bf67278ce5a0da9779d74f05169beac219b8 (diff)
downloadgit-f2c0ca4fae299c2515c1554dbeec2080af5c6792.tar.gz
git-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-xt/t7002-grep.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh
index ae5290ab4..3a103fec9 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