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

Re: [RFC, PATCH] A new merge algorithm (EXPERIMENTAL)

From
Junio C Hamano <junkio@cox.net>
Date
Aug 27, 2005, 01:08 UTC
Message-ID
<7vk6i89ofi.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.58.0508261730480.3317@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 10 quoted lines
> On Fri, 26 Aug 2005, Fredrik Kuivinen wrote:
>>
>> In real numbers it is as follows: In Linus' kernel tree there are
>> 5996 commits. 400 of those have more than one parent. Of those 400
>> merge commits 4 have more than one shared head.
>
> Ok, that's already interesting in itself. I was wanting to re-run all the 
> merges with the new "git-merge-base -a" to see which merges might have had 
> different merge bases, and you've actually done that. Interesting to see 
> the numbers.

Fredrik, mind giving us the commit ID of those four for us to take a look at them?

Show 5 quoted lines
> I am of two minds on this. I hate the notion of a more complex merge. But
> at the same time, it clearly is a very interesting case when we do have
> multiple possible shared parents, and I think that at the very least we
> should warn the user. And using a more complex merge algorithm when it
> happens seems to be a very valid thing to do.

I agree. GIT is lightening fast for trivial cases and we can afford to spend more time to handle more complex ones carefully, at the same time telling the user what we are doing is a good thing.

> Using python, which people have less exposure to, sounds like an 
> additional thorny issue..
Not too big a problem for me to follow the patch ;-).
Previous: Linus TorvaldsNext: Fredrik Kuivinen
Message 7 of 8 in “A new merge algorithm (EXPERIMENTAL)”
  1. A new merge algorithm (EXPERIMENTAL)Fredrik Kuivinen, Aug 26, 2005
  2. Daniel BarkalowAug 26, 2005
  3. Fredrik KuivinenAug 26, 2005
  4. Daniel BarkalowAug 26, 2005
  5. Junio C HamanoAug 26, 2005
  6. Linus TorvaldsAug 27, 2005
  7. Junio C HamanoAug 27, 2005
  8. Fredrik KuivinenAug 27, 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.