summary refs log tree commit diff
path: root/merge-ort.c
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2022-02-02 02:37:35 +0000
committerJunio C Hamano <gitster@pobox.com>2022-02-02 10:02:28 -0800
commit20323d104ec389505e83b9376c8ecab94e852fb8 (patch)
tree2a2190c34b5ab8a20a19465e4654c95ebc0a3cd0 /merge-ort.c
parent95433eeed9eac439eb21eb30105354b15e71302e (diff)
show, log: include conflict/warning messages in --remerge-diff headers
Conflicts such as modify/delete, rename/rename, or file/directory are
not representable via content conflict markers, and the normal output
messages notifying users about these were dropped with --remerge-diff.
While we don't want these messages randomly shown before the commit
and diff headers, we do want them to still be shown; include them as
part of the diff headers instead.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-ort.c')
-rw-r--r--merge-ort.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/merge-ort.c b/merge-ort.c
index 481305d2bc..43f980d258 100644
--- a/merge-ort.c
+++ b/merge-ort.c
@@ -4585,6 +4585,7 @@ redo:
 	trace2_region_leave("merge", "process_entries", opt->repo);
 
 	/* Set return values */
+	result->path_messages = &opt->priv->output;
 	result->tree = parse_tree_indirect(&working_tree_oid);
 	/* existence of conflicted entries implies unclean */
 	result->clean &= strmap_empty(&opt->priv->conflicted);