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

Re: [RFC] Looking at multiple ancestors in merge

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Aug 25, 2005, 05:20 UTC
Message-ID
<Pine.LNX.4.63.0508250108100.23242@iabervon.org>
In-Reply-To
<430D4B75.6060102@gmail.com>
On Wed, 24 Aug 2005, A Large Angry SCM wrote:
Show 26 quoted lines
> Daniel Barkalow wrote:
> > 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.

My proposal is actually to detect when a merge is ambiguous. In order to determine that, however, you have to evaluate multiple potential outcomes and see if they are actually different. I'm working on an efficient way to do that.

Then further work could look into eliminating possibilities when information about the history excludes them. There were two issues in the case that Tony hit: it ignored a potential correct outcome for the merge, and it didn't ignore an outcome which could be demonstrated to be incorrect. The priority is to resolve the first, but things which improve the second or help with solutions to the second are worth understanding.

	-Daniel
*This .sig left intentionally blank*
Previous: A Large Angry SCMNext: Matthias Urlichs
Message 3 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.