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

Re: What is the scenario for a commit with 3 or more parents

From
JJJoshua Juran <jjuran@gmail.com>
Date
Jul 29, 2010, 18:10 UTC
Message-ID
<C77AA970-4288-487F-9568-E86CF776FCED@gmail.com>
In-Reply-To
<AANLkTik-wOB-iEGK8EnW1Rdk9wwc1E86tYoBU26WepYJ@mail.gmail.com>
On Jul 29, 2010, at 10:55 AM, Sverre Rabbelier wrote:
Show 10 quoted lines
> Heya,
>
> On Wed, Jul 28, 2010 at 21:19, Shawn O. Pearce <spearce@spearce.org>  
> wrote:
>> Yes.  Its called an octopus merge.  It happpens sometimes when
>> merging 2 or more otherwise fairly isolated changes in a single
>> shot.  E.g. `git merge feature-a feature-b thing-c`.
>
> Do we have an explanation anywhere as to when one would use a  
> octopus merge?

How about if you had two (or more) components with a shared protocol, and you updated each to speak a new (and incompatible) protocol. The changes to each component might be done in separate topic branches, but you'd want to merge them all at once.

$ git checkout master $ git merge client-v2 server-v2

Josh
Previous: Bradley WagnerNext: Sverre Rabbelier
Message 5 of 9 in “What is the scenario for a commit with 3 or more parents”
  1. Bradley WagnerJul 29, 2010
  2. Shawn O. PearceJul 29, 2010
  3. Sverre RabbelierJul 29, 2010
  4. Bradley WagnerJul 29, 2010
  5. Joshua JuranJul 29, 2010
  6. Sverre RabbelierJul 29, 2010
  7. Junio C HamanoJul 29, 2010
  8. Sverre RabbelierJul 29, 2010
  9. Junio C HamanoJul 29, 2010

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.