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

Re: Strange merge conflicts against earlier merge.

From
Junio C Hamano <junkio@cox.net>
Date
Nov 11, 2005, 17:29 UTC
Message-ID
<7v64qzozyx.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20051111114511.GQ30496@pasky.or.cz>
Petr Baudis <pasky@suse.cz> writes:
> Does core GIT have support for multibase merges, except for the
> recursive merge strategy? How do you do it?

There were lengthy discussion on this and a lot of work that went into the resolution. We do three things.

 - The first implementation does a trial read-tree 3-way using
   each of the base candidates without smudging the working
   tree, and counts paths that need file-level merges, to guess
   the best base, and uses that base.  This is in the 'stupid'
   stratagy.
 - The above turned out to have a risky corner case, especially
   when one side reverted a patch and the other one did not.  To
   address this, read-tree was rewritten and 3-way form of
   read-tree can take more than three trees these days, letting
   you feed it all the merge base candidates.  This code is used
   in 'resolve' strategy.
 - The 'recursive' strategy tries to come up with a merge of the
   candidate bases and uses it as the base of the final merge.
Previous: Petr BaudisNext: Petr Baudis
Message 8 of 13 in “Strange merge conflicts against earlier merge.”
  1. Martin LanghoffNov 10, 2005
  2. Petr BaudisNov 10, 2005
  3. Martin LanghoffNov 11, 2005
  4. Petr BaudisNov 11, 2005
  5. Fredrik KuivinenNov 11, 2005
  6. Petr BaudisNov 11, 2005
  7. Petr BaudisNov 11, 2005
  8. Junio C HamanoNov 11, 2005
  9. Petr BaudisNov 11, 2005
  10. Petr BaudisNov 11, 2005
  11. Junio C HamanoNov 11, 2005
  12. Daniel BarkalowNov 11, 2005
  13. Junio C HamanoNov 12, 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.