git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fwd: $LOCAL and $REMOTE swapped for rebase mergetool
       [not found] <CAO8o=D7LKUp_Bf54hbVNumhpNKnDO3UKgyOMU_0d0Er87a2zJQ@mail.gmail.com>
@ 2022-02-06 19:38 ` Noam Raphael
  0 siblings, 0 replies; only message in thread
From: Noam Raphael @ 2022-02-06 19:38 UTC (permalink / raw)
  To: git

Hi,

When using `git mergetool` with `git merge`, the variables $BASE,
$REMOTE, $LOCAL and $MERGED behave as I would expect.

However, when using `git rebase` instead of `git merge`, $LOCAL and
$REMOTE are swapped - instead of $LOCAL being the local content before
the commit and $REMOTE being the content being rebased, it's the other
way round. This doesn't seem consistent with the git-mergetool man
page.

This causes 3-way diff tools to swap the meaning of what's on the left
pane and what's on the right pane. I had to work around this with the
new 4-way diff tool that I wrote (https://github.com/noamraph/meld,
check it out!) since it assumes the diff between BASE and REMOTE
should be applied to LOCAL, and this doesn't hold.

I think that at least the documentation should be updated. Or perhaps
the behavior should change - this actually seems to me like a bug.

Cheers,
Noam

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-06 19:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAO8o=D7LKUp_Bf54hbVNumhpNKnDO3UKgyOMU_0d0Er87a2zJQ@mail.gmail.com>
2022-02-06 19:38 ` Fwd: $LOCAL and $REMOTE swapped for rebase mergetool Noam Raphael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).