git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH] mergetool: clarify local/remote terminology

From
Jeff King <peff@peff.net>
Date
Mar 1, 2008, 04:41 UTC
Message-ID
<20080301044155.GA9010@coredump.intra.peff.net>
In-Reply-To
<7v3arcfh54.fsf@gitster.siamese.dyndns.org>
On Thu, Feb 28, 2008 at 09:47:35PM -0800, Junio C Hamano wrote:
Show 9 quoted lines
> While I like the fact that somebody is trying to tackle the
> consistency issue, I do not like the approach itself.  Fudging
> the issue at the merge-tool UI level may make things appear more
> consistent when viewing the merge from within merge-tool, but it
> makes the views merge-tool gives and vi/less gives inconsistent.
> 
> It would be a lot more sensible to make sure that we always show
> the side that the end-user modified first and then the side the
> other party changed.

I hadn't considered that, because I never pay attention to the order of changes between the conflict markers; I look at the nice "HEAD" and "abcdef... commit subject" messages.

But then I don't do a lot of conflict resolution. Usually I either work with tiny teams on a central-ish repository, or work on projects where I am just a contributor.

So I agree that a consistent view makes sense, and I can see that ordering of hunks is a sensible context clue. However, should this not extend further, to the index numbering? Or do we not care, because mortals rarely touch the index? What about "git-rebase --strategy=ours", which really means "theirs"?

Unfortunately just swapping the arguments to git-merge-* in git-rebase.sh doesn't quite work ("merge-ours" doesn't actually load the index and say "pick the 'ours' stage"; it just says "whatever is in the working tree is fine.").

-Peff
Previous: Junio C Hamano
Message 10 of 10 in “mergetool: clarify local/remote terminology”
  1. mergetool: clarify local/remote terminologyJay Soffian, Feb 21, 2008
  2. Jay SoffianFeb 25, 2008
  3. Jeff KingFeb 25, 2008
  4. Jay SoffianFeb 25, 2008
  5. Jeff KingFeb 25, 2008
  6. Jay SoffianFeb 25, 2008
  7. Jeff KingFeb 25, 2008
  8. Jeff KingFeb 28, 2008
  9. Junio C HamanoFeb 29, 2008
  10. Jeff KingMar 1, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.