Skip to content

Commit 624a935

Browse files
newrengitster
authored andcommitted
merge-ort: exclude messages from inner merges by default
merge-recursive would only report messages from inner merges when the GIT_MERGE_VERBOSITY was set to 5. Do the same for merge-ort. Note that somewhat reverts 0d83d82 ("merge-ort: mark conflict/warning messages from inner merges as omittable", 2022-02-02) based on two facts: * This commit basically removes the showing of messages from inner merges as well, at least by default. The only difference is that users can request to get them back by turning up the verbosity. * Messages from inner merges are specially annotated since 4a3d86e ("merge-ort: make informational messages from recursive merges clearer", 2022-02-17). The ability to distinguish them from outer merge comments make them less problematic to include, and easier for humans to parse. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 715d08a commit 624a935

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

merge-ort.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,9 @@ static void path_msg(struct merge_options *opt,
639639

640640
if (opt->record_conflict_msgs_as_headers && omittable_hint)
641641
return; /* Do not record mere hints in headers */
642-
if (opt->record_conflict_msgs_as_headers && opt->priv->call_depth)
643-
return; /* Do not record inner merge issues in headers */
642+
if (opt->priv->call_depth && opt->verbosity < 5)
643+
return; /* Ignore messages from inner merges */
644+
644645
sb = strmap_get(&opt->priv->output, path);
645646
if (!sb) {
646647
sb = xmalloc(sizeof(*sb));

0 commit comments

Comments
 (0)