]> git.ipfire.org Git - thirdparty/git.git/commitdiff
merge-ort: exclude messages from inner merges by default
authorElijah Newren <newren@gmail.com>
Wed, 2 Mar 2022 04:19:21 +0000 (04:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Mar 2022 07:31:56 +0000 (23:31 -0800)
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 0d83d8240d ("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 4a3d86e1bb
    ("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 <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-ort.c

index 55decb2587e03374be843b218507f3c752652ea0..be85273c727f282ce39133925a539bba247121cf 100644 (file)
@@ -639,8 +639,9 @@ static void path_msg(struct merge_options *opt,
 
        if (opt->record_conflict_msgs_as_headers && omittable_hint)
                return; /* Do not record mere hints in headers */
-       if (opt->record_conflict_msgs_as_headers && opt->priv->call_depth)
-               return; /* Do not record inner merge issues in headers */
+       if (opt->priv->call_depth && opt->verbosity < 5)
+               return; /* Ignore messages from inner merges */
+
        sb = strmap_get(&opt->priv->output, path);
        if (!sb) {
                sb = xmalloc(sizeof(*sb));