Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: support newline separated pattern list
[gitweb.git]
/
t
/
t7810-grep.sh
diff --git
a/t/t7810-grep.sh
b/t/t7810-grep.sh
index 6379ad60bcb9b5b56eb773b5a987745356c24df6..bc9a522085c794ccfcb9648c19e6e4c0c1ed6d19 100755
(executable)
--- a/
t/t7810-grep.sh
+++ b/
t/t7810-grep.sh
@@
-322,6
+322,11
@@
test_expect_success 'grep -f, multiple patterns' '
test_cmp expected actual
'
+test_expect_success 'grep, multiple patterns' '
+ git grep "$(cat patterns)" >actual &&
+ test_cmp expected actual
+'
+
cat >expected <<EOF
file:foo mmap bar
file:foo_mmap bar