summaryrefslogtreecommitdiff
path: root/t/t7002-grep.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-12-03 13:51:26 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-12-03 13:51:26 -0800
commitf2c0ca4fae299c2515c1554dbeec2080af5c6792 (patch)
tree5aedb798c52fee287b45bc85e8bf2e726a5289a9 /t/t7002-grep.sh
parentMerge branch 'jk/maint-break-rename-reduce-memory' into maint (diff)
parentgrep: Allow case insensitive search of fixed-strings (diff)
downloadtgif-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/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 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