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

Re: The coolest merge EVER!

From
Linus Torvalds <torvalds@osdl.org>
Date
Jun 24, 2005, 19:22 UTC
Message-ID
<Pine.LNX.4.58.0506241211100.11175@ppc970.osdl.org>
In-Reply-To
<pan.2005.06.24.11.54.51.598627@smurf.noris.de>
On Fri, 24 Jun 2005, Matthias Urlichs wrote:
Show 8 quoted lines
> Hi, Junio C Hamano wrote:
> 
> > I suspect there
> > would be a massive additional support needed if you want to make it easy
> > for Paul to pull changes made to gitk in your tree.
> 
> I don't think that's possible; after all, the trees are now merged, so any
> pull would fetch all of Linus' tree.
No no. 

A merge is a one-way thing. I merged Paul's tree, but Paul didn't merge mine. His is still independent, and you can still pull his tree without getting the rest of git, and Paul can still continue to work on his tree as if I never merged it at all.

Now, merging back isn't as easy: if any gitk changes get done in my "union" tree, Paul can't just pull those, becasue they now end up being linked to the history of the unified thing, so when pulling, he'd now end up getting all of the regular git stuff too.

Which is probably acceptable, but Junio's point was that this is not a symmetric setup: git is like a black hole that never lets any information escape, and once you've been sucked into a git archive, you end up not being able to separate it.

Or rather, you _can_ separate out pieces of it, but now it's a matter of cherry-picking, not automatic merges. Of course, people want to be able to do that anyway, and normally that will also merge back perfectly, so there's no huge downside, except that we should make it fairly easy.

		Linus
Previous: Daniel Barkalow
Message 7 of 7 in “The coolest merge EVER!”
  1. Linus TorvaldsJun 22, 2005
  2. Jon SeymourJun 23, 2005
  3. Jeff GarzikJun 23, 2005
  4. Junio C HamanoJun 24, 2005
  5. Matthias UrlichsJun 24, 2005
  6. Daniel BarkalowJun 24, 2005
  7. Linus TorvaldsJun 24, 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.