Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
unpack-trees.c: look ahead in the index
[gitweb.git]
/
t
/
t7002-grep.sh
diff --git
a/t/t7002-grep.sh
b/t/t7002-grep.sh
index dd0da6c0bf45524b75de9dbaf67bbbef724fdf4e..abd14bf819f5c60fc1b9dc758c04974bd24b10a4 100755
(executable)
--- 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