Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: use get_pathspec() correctly
[gitweb.git]
/
t
/
t7810-grep.sh
diff --git
a/t/t7810-grep.sh
b/t/t7810-grep.sh
index 8a7788dc39f236b15e60912c384d835fd1db5a28..dbc6cd8a775a43efbd8fdf433958ccd090b6e3ab 100755
(executable)
--- a/
t/t7810-grep.sh
+++ b/
t/t7810-grep.sh
@@
-303,6
+303,11
@@
test_expect_success 'grep -f, ignore empty lines' '
test_cmp expected actual
'
+test_expect_success 'grep -f, ignore empty lines, read patterns from stdin' '
+ git grep -f - <patterns >actual &&
+ test_cmp expected actual
+'
+
cat >expected <<EOF
y:y yy
--