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
@@ -78,11 +78,14 @@ struct ll_merge_options {
|
||||
*/
|
||||
unsigned extra_marker_size;
|
||||
|
||||
/* Override the global conflict style. */
|
||||
int conflict_style;
|
||||
|
||||
/* Extra xpparam_t flags as defined in xdiff/xdiff.h. */
|
||||
long xdl_opts;
|
||||
};
|
||||
|
||||
#define LL_MERGE_OPTIONS_INIT {0}
|
||||
#define LL_MERGE_OPTIONS_INIT { .conflict_style = -1 }
|
||||
|
||||
enum ll_merge_result {
|
||||
LL_MERGE_ERROR = -1,
|
||||
|
||||
Reference in New Issue
Block a user