diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-05-25 12:04:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-25 12:04:19 -0700 |
commit | fca9e0013eeaad45bff38f66667d2791a1edc53f (patch) | |
tree | b487bf942d747ec16185d361b9249eb5034b7ca4 /t | |
parent | Sync with 1.7.10.3 (diff) | |
parent | grep: stop leaking line strings with -f (diff) | |
download | tgif-fca9e0013eeaad45bff38f66667d2791a1edc53f.tar.xz |
Merge branch 'rs/maint-grep-F'
"git grep -e '$pattern'", unlike the case where the patterns are read from
a file, did not treat individual lines in the given pattern argument as
separate regular expressions as it should.
Diffstat (limited to 't')
-rwxr-xr-x | t/t7810-grep.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index d9ad633310..24e9b1974d 100755 --- a/t/t7810-grep.sh +++ b/t/t7810-grep.sh @@ -351,6 +351,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 |