Skip to content

Commit 00f62a6

Browse files
Michael J Grubergitster
authored andcommitted
t7810-grep: test multiple --author with --all-match
The "--all-match" option is about "--grep", and does not affect how "--author" or "--committer" limitation is applied. Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dfe3642 commit 00f62a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

t/t7810-grep.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,14 @@ test_expect_success 'log with multiple --author uses union' '
513513
test_cmp expect actual
514514
'
515515

516+
test_expect_success 'log --all-match with multiple --author still uses union' '
517+
git log --all-match --author="Thor" --author="Aster" --format=%s >actual &&
518+
{
519+
echo third && echo second && echo initial
520+
} >expect &&
521+
test_cmp expect actual
522+
'
523+
516524
test_expect_success 'log with --grep and multiple --author uses all-match' '
517525
git log --author="Thor" --author="Night" --grep=i --format=%s >actual &&
518526
{

0 commit comments

Comments
 (0)