]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t7810-grep: test multiple --author with --all-match
authorMichael J Gruber <git@drmicha.warpmail.net>
Fri, 14 Sep 2012 09:46:41 +0000 (11:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 16 Sep 2012 06:35:40 +0000 (23:35 -0700)
The "--all-match" option is about "--grep", and does not affect how
"--author" or "--committer" limitation is applied.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7810-grep.sh

index b841909315e5604ac51558c07cb5f71155401463..be81d96e20cae1d4272459050711f3af50adf5ff 100755 (executable)
@@ -513,6 +513,14 @@ test_expect_success 'log with multiple --author uses union' '
        test_cmp expect actual
 '
 
+test_expect_success 'log --all-match with multiple --author still uses union' '
+       git log --all-match --author="Thor" --author="Aster" --format=%s >actual &&
+       {
+           echo third && echo second && echo initial
+       } >expect &&
+       test_cmp expect actual
+'
+
 test_expect_success 'log with --grep and multiple --author uses all-match' '
        git log --author="Thor" --author="Night" --grep=i --format=%s >actual &&
        {