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

Re: [RFC] Looking at multiple ancestors in merge

From
A Large Angry SCM <gitzilla@gmail.com>
Date
Aug 25, 2005, 04:39 UTC
Message-ID
<430D4B75.6060102@gmail.com>
In-Reply-To
<Pine.LNX.4.63.0508242249030.23242@iabervon.org>
Daniel Barkalow wrote:
Show 14 quoted lines
> I'm starting to work on letting the merging process see multiple
> ancestors, and I think it's messy enough that I should actually discuss
> it.
> 
> Review of the issue:
> 
> It is possible to lost reverts in cases when merging two commits with
> multiple ancestors, in the following pattern: (letters representing blobs
> at some filename, children to the right)
> 
> a-b-b-a-?
>  \ X   /
>   a-b-b
> 
[Lots of stuff deleted]

There seems to be a lot of effort being put into auto-magically choosing the "right" merge in the presence of multiple possible merge bases. Unfortunately, most (all?) of the proposals are attempting to divine intent, and so, are guaranteed to be 100% wrong at least some of the time.

Wouldn't it be better, instead, to detect that current merge being attempted is ambiguous and require the user to specify the correct merge base? The alternative is a tool that appears to work all of the time but does the wrong thing some of the time.

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 2 of 7 in “[RFC] Looking at multiple ancestors in merge”
  1. Daniel BarkalowAug 25, 2005
  2. A Large Angry SCMAug 25, 2005
  3. Daniel BarkalowAug 25, 2005
  4. Matthias UrlichsAug 25, 2005
  5. Daniel BarkalowAug 26, 2005
  6. Junio C HamanoAug 26, 2005
  7. Daniel BarkalowAug 26, 2005

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.