]> git.ipfire.org Git - thirdparty/git.git/commit - revision.h
diff-merges: do not imply -p for new options
authorSergey Organov <sorganov@gmail.com>
Mon, 21 Dec 2020 15:19:52 +0000 (18:19 +0300)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Dec 2020 21:47:32 +0000 (13:47 -0800)
commit5733b20f41ac0fecdacdf34a11acef2d03fac829
treebf8c83b19abbbb0b5cf129279cdbb97c0df1e5c3
parent8c0ba528bc3c61f4582bf68d3f0cc2a72f5f3792
diff-merges: do not imply -p for new options

Add 'combined_imply_patch' field and set it only for old --cc/-c
options, then imply -p if this flag is set instead of implying -p
whenever 'combined_merge' flag is set.

We don't want new --diff-merge options to imply -p, to make it
possible to enable output of diffs for merges independently from
non-merge commits. At the same time we want to preserve behavior of
old --c/-c/-m options and their interactions with --first-parent, to
stay backward-compatible.

This patch is first step in this direction: it separates old "--cc/-c
imply -p" logic from the rest of the options.

Signed-off-by: Sergey Organov <sorganov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-merges.c
revision.h