]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t4013: test that "-m" alone has no effect in "git log"
authorSergey Organov <sorganov@gmail.com>
Thu, 20 May 2021 21:46:54 +0000 (00:46 +0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 May 2021 00:24:13 +0000 (09:24 +0900)
This is to notice current behavior that we are going to change when we
start to imply "-p" by "-m".

Signed-off-by: Sergey Organov <sorganov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4013-diff-various.sh

index 87def81699bf825135211c4965453be7c08709a1..e9f67cd2435139646e3f06dbe4364a3575e88801 100755 (executable)
@@ -452,6 +452,14 @@ diff-tree --stat --compact-summary initial mode
 diff-tree -R --stat --compact-summary initial mode
 EOF
 
+test_expect_success 'log -m matches pure log' '
+       git log master >result &&
+       process_diffs result >expected &&
+       git log -m >result &&
+       process_diffs result >actual &&
+       test_cmp expected actual
+'
+
 test_expect_success 'log --diff-merges=on matches --diff-merges=separate' '
        git log -p --diff-merges=separate master >result &&
        process_diffs result >expected &&