diff-merges: introduce revs->first_parent_merges flag
This new field allows us to separate format of diff for merges from 'first_parent_only' flag which primary purpose is limiting history traversal. This change further localizes diff format selection logic into the diff-merges.c file. 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
3b6c17b5c0
commit
3291eea310
@ -73,6 +73,8 @@ void diff_merges_default_to_first_parent(struct rev_info *revs)
|
||||
{
|
||||
if (revs->ignore_merges < 0) /* No -m */
|
||||
revs->ignore_merges = 0;
|
||||
if (!revs->combine_merges) /* No -c/--cc" */
|
||||
revs->first_parent_merges = 1;
|
||||
}
|
||||
|
||||
void diff_merges_default_to_dense_combined(struct rev_info *revs)
|
||||
|
||||
Reference in New Issue
Block a user