Skip to content

Commit e0ea342

Browse files
newrengitster
authored andcommitted
merge-ort: support having merge verbosity be set to 0
Various callers such as am & checkout set the merge verbosity to 0 to avoid having conflict messages printed. While this could be achieved by avoiding the wrappers from merge-ort-wrappers and instead passing 0 for display_update_msgs to merge_switch_to_result(), for simplicity of converting callers simply allow them to also achieve this with the merge-ort-wrappers by setting verbosity to 0. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d1e8f30 commit e0ea342

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

merge-ort.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,8 @@ static void path_msg(struct merge_options *opt,
799799
return; /* Do not record mere hints in headers */
800800
if (opt->priv->call_depth && opt->verbosity < 5)
801801
return; /* Ignore messages from inner merges */
802+
if (!opt->verbosity)
803+
return;
802804

803805
/* Ensure path_conflicts (ptr to array of logical_conflict) allocated */
804806
path_conflicts = strmap_get(&opt->priv->conflicts, primary_path);

0 commit comments

Comments
 (0)