aboutsummaryrefslogtreecommitdiff
path: root/t/t7002-grep.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-11-22 16:28:29 -0800
committerJunio C Hamano <gitster@pobox.com>2009-11-22 16:28:29 -0800
commit3fa384d27e79d4731a9188716f566fa423a8ff50 (patch)
treed3d262941f13e28c4ed27ee293e86f33689700bd /t/t7002-grep.sh
parenta1b01c45d58bba35ec1c2533dfb8d87cfa08b19e (diff)
parent5183bf67278ce5a0da9779d74f05169beac219b8 (diff)
downloadgit-3fa384d27e79d4731a9188716f566fa423a8ff50.tar.gz
git-3fa384d27e79d4731a9188716f566fa423a8ff50.tar.xz
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-xt/t7002-grep.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh
index dd0da6c0b..abd14bf81 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