merge options: add a conflict style member
Add a conflict_style member to `struct merge_options` and `struct ll_merge_options` to allow callers to override the default conflict style. This will be used in the next commit. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
412aff7b33
commit
135cc712c3
@ -128,7 +128,9 @@ static enum ll_merge_result ll_xdl_merge(const struct ll_merge_driver *drv_unuse
|
||||
xmp.level = XDL_MERGE_ZEALOUS;
|
||||
xmp.favor = opts->variant;
|
||||
xmp.xpp.flags = opts->xdl_opts;
|
||||
if (git_xmerge_style >= 0)
|
||||
if (opts->conflict_style >= 0)
|
||||
xmp.style = opts->conflict_style;
|
||||
else if (git_xmerge_style >= 0)
|
||||
xmp.style = git_xmerge_style;
|
||||
if (marker_size > 0)
|
||||
xmp.marker_size = marker_size;
|
||||
|
Reference in New Issue
Block a user