aboutsummaryrefslogtreecommitdiffstats
path: root/merge-ort.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-04-01 13:21:33 -0700
committerJunio C Hamano <gitster@pobox.com>2024-04-01 13:21:33 -0700
commitccdc7d98bb39aad1dc1bc78357a763d10fe14ddb (patch)
tree34fde699f6ff8d34ee660fc616eade80242baa4f /merge-ort.c
parentThe twelfth batch (diff)
parentcheckout: fix interaction between --conflict and --merge (diff)
downloadgit-ccdc7d98bb39aad1dc1bc78357a763d10fe14ddb.tar.gz
git-ccdc7d98bb39aad1dc1bc78357a763d10fe14ddb.zip
Merge branch 'pw/checkout-conflict-errorfix'
"git checkout --conflict=bad" reported a bad conflictStyle as if it were given to a configuration variable; it has been corrected to report that the command line option is bad. * pw/checkout-conflict-errorfix: checkout: fix interaction between --conflict and --merge checkout: cleanup --conflict=<style> parsing merge options: add a conflict style member merge-ll: introduce LL_MERGE_OPTIONS_INIT xdiff-interface: refactor parsing of merge.conflictstyle
Diffstat (limited to 'merge-ort.c')
-rw-r--r--merge-ort.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/merge-ort.c b/merge-ort.c
index ac225cc33c..eaede6cead 100644
--- a/merge-ort.c
+++ b/merge-ort.c
@@ -2025,7 +2025,7 @@ static int merge_3way(struct merge_options *opt,
mmbuffer_t *result_buf)
{
mmfile_t orig, src1, src2;
- struct ll_merge_options ll_opts = {0};
+ struct ll_merge_options ll_opts = LL_MERGE_OPTIONS_INIT;
char *base, *name1, *name2;
enum ll_merge_result merge_status;
@@ -2035,6 +2035,7 @@ static int merge_3way(struct merge_options *opt,
ll_opts.renormalize = opt->renormalize;
ll_opts.extra_marker_size = extra_marker_size;
ll_opts.xdl_opts = opt->xdl_opts;
+ ll_opts.conflict_style = opt->conflict_style;
if (opt->priv->call_depth) {
ll_opts.virtual_ancestor = 1;