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

Re: Octopus merge: unique (?) to git, but is it useful?

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 3, 2008, 07:32 UTC
Message-ID
<200806030932.03051.jnareb@gmail.com>
In-Reply-To
<alpine.LFD.1.10.0806021845210.3473@woody.linux-foundation.org>
On Tue, 3 June 2008, Linus Torvalds wrote:
Show 10 quoted lines
> 
> On Tue, 3 Jun 2008, Jakub Narebski wrote:
>>
>> I think that octopus merge (merge with more than two parents/legs) is 
>> feature which is unique to git (isn't it?).  Do you remember perhaps 
>> why it was introduced?
> 
> Well, mainly because the data structures supported the notion naturally.
> 
> Once you have 0, 1 or 2 parents, the logical progression is "many". 

Well, it of course depends on design. For example Mercurial (from what I have read in the documentation) has fixed width (two element) parents array in revflog structure. Commit can have no parents (root commit), one parent, or two parents. There is no place (again: AFAIK) for octopus[*1*] merge.

Footnotes:
==========
[*1*] I assume that this kind of merge is called 'octopus' because it
      has more than two "legs" (parents), and not for example because
      first such merge had 8 parents?
-- 
Jakub Narebski
Poland
Previous: Junio C HamanoNext: Junio C Hamano
Message 21 of 30 in “Octopus merge: unique (?) to git, but is it useful?”
  1. Jakub NarebskiJun 3, 2008
  2. Linus TorvaldsJun 3, 2008
  3. Junio C HamanoJun 3, 2008
  4. Junio C HamanoJun 3, 2008
  5. Johannes SchindelinJun 3, 2008
  6. Junio C HamanoJun 3, 2008
  7. Johannes SchindelinJun 3, 2008
  8. SZEDER GáborJun 3, 2008
  9. Junio C HamanoJun 3, 2008
  10. SZEDER GáborJun 3, 2008
  11. Junio C HamanoJun 3, 2008
  12. SZEDER GáborJun 3, 2008
  13. Jeff KingJun 4, 2008
  14. Junio C HamanoJun 4, 2008
  15. Linus TorvaldsJun 3, 2008
  16. Miklos VajnaJun 3, 2008
  17. Junio C HamanoJun 4, 2008
  18. Junio C HamanoJun 3, 2008
  19. Jakub NarebskiJun 3, 2008
  20. Junio C HamanoJun 3, 2008
  21. Jakub NarebskiJun 3, 2008
  22. Junio C HamanoJun 3, 2008
  23. Linus TorvaldsJun 3, 2008
  24. Commit annotations (was:: Octopus merge: unique (?) to git, but is it useful?)Jakub Narebski, Jun 3, 2008
  25. Johannes SchindelinJun 3, 2008
  26. Johan HerlandJun 3, 2008
  27. Daniel VilleneuveJun 3, 2008
  28. Matthieu MoyJun 3, 2008
  29. Jakub NarebskiJun 3, 2008
  30. Matthieu MoyJun 3, 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.