All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: Junio C Hamano <gitster@pobox.com>,
	Felipe Contreras <felipe.contreras@gmail.com>
Cc: Seth House <seth@eseth.com>, Johannes Sixt <j6t@kdbg.org>,
	git@vger.kernel.org, David Aguilar <davvid@gmail.com>
Subject: Re: [RFC/PATCH] mergetool: use resolved conflicts in all the views
Date: Sat, 19 Dec 2020 14:18:38 -0600	[thread overview]
Message-ID: <5fde601ee30f5_1e50c72081c@natae.notmuch> (raw)
In-Reply-To: <xmqqpn35odnm.fsf@gitster.c.googlers.com>

Junio C Hamano wrote:
> Felipe Contreras <felipe.contreras@gmail.com> writes:
> 
> > Junio C Hamano wrote:
> >> Seth House <seth@eseth.com> writes:
> >> 
> >> > I think where we're not seeing eye-to-eye is that you're focusing on
> >> > potential "negative" consequences whereas I'm talking about having more
> >> > information about the merge rather than less.
> >> >
> >> > There is very likely no negative consequences for most, if not all,
> >> > mergetools. I wrote the initial version of diffconflicts ten years ago
> >> > and I've been using it nearly every day since. I'm fairly confident in
> >> > the end result. What is a fact is there is undisputedly less information
> >> > about the merge if we overwrite LOCAL and REMOTE; as I've written,
> >> > I think the tradeoff is worthwhile for most tools but a per-tool
> >> > configuration will allow people that feel differently to choose
> >> > differently.
> >> 
> >> Thanks for stressing this point.
> >> 
> >> When a user or developer asks for a reasonable feature (e.g.
> >> configurability to suit personal taste), especially when there is no
> >> obvious downside for adding it, the burden of proof is on the party
> >> who refuses to add it
> >
> > Sorry, but no.
> >
> > You may be the final word in the git project, but the burden of proof is
> > an essential part of logic, not project-dependent, and that's just not
> > the case.
> >
> > *Anyone* that makes any claim has the burden of proof.
> 
> Yes, and in this case, Seth already said he prefers to be able to
> see the original, and not necessarily all the users of his mergetool
> backend prefer the same thing.  That is enough "proof" to me that
> the need exists.

That's not proof. That's one person stating his opinion.

He did not present evidence of *why* one of his users would prefer to
turn this flag off in his tool, but not others.

Here, allow me to show what diffconflicts does:

diff --git a/mergetools/vimdiff b/mergetools/vimdiff
index abc8ce4ec4..a8fd8e4a84 100644
--- a/mergetools/vimdiff
+++ b/mergetools/vimdiff
@@ -29,6 +29,10 @@ merge_cmd () {
 				"$LOCAL" "$REMOTE" "$MERGED"
 		fi
 		;;
+	*vimdiff4)
+		cp "$LOCAL" "$MERGED"
+		"$merge_tool_path" -f -d "$MERGED" "$REMOTE"
+		;;
 	esac
 }
 

"mergetool.automerge=true" plus the code above replicates the main
functionality of the diffconflicts plugin.

Why would anyone want to turn off automerge for vimdiff4, but not for
vimdiff2?

Nobody has explained that.

> It is your turn to prove your (implicit) claim that it does more harm
> than it helps to allow such a preference expressed by end users.

No. The burden of proof is still on the side that claims such preference
is desirable.

"I think X" is not evidence of X.

> > Is there a conflict in this example?
> >
> >   echo Hello > BASE
> >   echo Hello > LOCAL
> >   echo Hello. > REMOTE
> >   git merge-file -p LOCAL BASE REMOTE
> 
> Sorry, but I do not see why that example matters.

But I do. That's why I asked the question.

> Would such a case even come into the picture to be resolved by "git
> mergetool" in the first place?

That is precisely the point.

It is not a conflict because that line only has changes in REMOTE, but
not in LOCAL. Correct?

git doesn't bother the user because there's no merge conflict.

But if there is an *actual conflict* some lines below, why should git,
or git-mergetool, or the mergetool now bother the user presenting it the
diff of the "Hello." line?

Why does that line that according to you "wouldn't not even come into
the picture" becomes suddenly relevant when there's an actual conflict
below?

Either the "Hello." change is relevant or it isn't.

But more importantly; its relevance doesn't depend on the mergetool.

Choosing vimdiff4 doesn't magically make it a conflict.

Cheer.

-- 
Felipe Contreras

  reply	other threads:[~2020-12-19 20:19 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16 17:43 [RFC/PATCH] mergetool: use resolved conflicts in all the views Felipe Contreras
2020-12-16 22:24 ` Junio C Hamano
2020-12-16 22:53   ` Seth House
2020-12-17  5:18     ` Junio C Hamano
2020-12-17  5:41     ` Felipe Contreras
2020-12-17  7:35       ` Johannes Sixt
2020-12-17  8:27         ` Felipe Contreras
2020-12-17 19:23           ` Johannes Sixt
2020-12-18  2:30             ` Felipe Contreras
2020-12-17  9:44         ` Seth House
2020-12-17 10:35           ` Felipe Contreras
2020-12-17 17:50             ` Seth House
2020-12-17 19:28               ` Junio C Hamano
2020-12-18  2:34                 ` Felipe Contreras
     [not found]                   ` <CANiSa6jMXTyfo43bUdC8601BvYKiF67HXo+QaiTh_-8KWyBsLg@mail.gmail.com>
2020-12-21  0:31                     ` Felipe Contreras
2020-12-18  2:05               ` Felipe Contreras
2020-12-18  2:35                 ` Seth House
2020-12-18  2:49                   ` Felipe Contreras
2020-12-18  5:49                     ` Seth House
2020-12-18  9:46                       ` Felipe Contreras
2020-12-19  0:13                         ` Seth House
2020-12-19  0:53                           ` Felipe Contreras
2020-12-19 11:14                           ` Junio C Hamano
2020-12-19 12:08                             ` Felipe Contreras
2020-12-19 18:26                               ` Junio C Hamano
2020-12-19 20:18                                 ` Felipe Contreras [this message]
2020-12-21  4:25                             ` Seth House
2020-12-21  5:34                               ` Felipe Contreras
2020-12-21  7:36                                 ` Seth House
2020-12-21 11:17                                   ` Felipe Contreras
2020-12-21 22:15                                   ` David Aguilar
2020-12-21 23:51                                     ` Code of conduct violation? Felipe Contreras
2020-12-22  7:13                                       ` Junio C Hamano
2020-12-22  9:58                                         ` Felipe Contreras
2020-12-22 15:01                                       ` Pratyush Yadav
2020-12-23  4:23                                         ` Felipe Contreras
2020-12-23  5:02                                           ` Junio C Hamano
2020-12-23  5:41                                             ` Felipe Contreras
2020-12-23 15:04                                               ` Nobody is THE one making contribution Junio C Hamano
2020-12-23 15:51                                                 ` Felipe Contreras
2020-12-23 20:56                                                   ` Junio C Hamano
2020-12-24  1:09                                                     ` Felipe Contreras
2020-12-24  2:01                                                   ` Ævar Arnfjörð Bjarmason
2020-12-24  5:19                                                     ` Felipe Contreras
2020-12-24 12:30                                                       ` Ævar Arnfjörð Bjarmason
2020-12-24 15:26                                                         ` Felipe Contreras
2020-12-24 22:57                                                           ` Junio C Hamano
2020-12-27 17:29                                                             ` Felipe Contreras
2020-12-27 18:30                                                               ` Junio C Hamano
2020-12-27 18:47                                                                 ` Felipe Contreras
2020-12-28 10:39                                                                   ` Junio C Hamano
2020-12-28 14:27                                                                     ` Felipe Contreras
2020-12-24 15:09                                                       ` Randall S. Becker
2020-12-24 15:37                                                         ` Felipe Contreras
2020-12-24 22:40                                                           ` Junio C Hamano
2020-12-24 21:00                                       ` Code of conduct violation? David Aguilar
2020-12-24 22:32                                         ` Felipe Contreras
2020-12-18 10:04                       ` [RFC/PATCH] mergetool: use resolved conflicts in all the views Junio C Hamano
2020-12-18 11:58                         ` Felipe Contreras
2020-12-19 18:52                           ` Junio C Hamano
2020-12-19 20:59                             ` Felipe Contreras
2020-12-20  6:44                               ` David Aguilar
2020-12-20  7:53                                 ` Felipe Contreras
2020-12-20 22:22                                   ` David Aguilar
2020-12-21  1:46                                     ` Felipe Contreras
2020-12-19  0:18                         ` Seth House
2020-12-16 23:41   ` Felipe Contreras
2020-12-17  5:19     ` Junio C Hamano
2020-12-17  5:43       ` Felipe Contreras
2020-12-17  2:35 ` [RFC/PATCH v2] " Felipe Contreras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5fde601ee30f5_1e50c72081c@natae.notmuch \
    --to=felipe.contreras@gmail.com \
    --cc=davvid@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=j6t@kdbg.org \
    --cc=seth@eseth.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.