t4013: add tests for --diff-merges=first-parent
This new option provides essential new functionality, changing diff output to first parent only, without changing history traversal mode, so it deserves its own test. As we do it, add additional test that --diff-merges=first-parent by itself doesn't imply -p and only outputs diffs for merge commits. Signed-off-by: Sergey Organov <sorganov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
1d24509b7b
commit
af04d8f1a5
@ -327,6 +327,8 @@ log --no-diff-merges -p --first-parent master
|
||||
log --diff-merges=off -p --first-parent master
|
||||
log --first-parent --diff-merges=off -p master
|
||||
log -p --first-parent master
|
||||
log -p --diff-merges=first-parent master
|
||||
log --diff-merges=first-parent master
|
||||
log -m -p --first-parent master
|
||||
log -m -p master
|
||||
log --cc -m -p master
|
||||
|
Reference in New Issue
Block a user