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

Re: Git Vs. Svn for a project which *must* distribute binaries too.

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jun 4, 2007, 21:33 UTC
Message-ID
<alpine.LFD.0.98.0706041429380.23741@woody.linux-foundation.org>
In-Reply-To
<20070604212121.GA31852@dspnet.fr.eu.org>
On Mon, 4 Jun 2007, Olivier Galibert wrote:
Show 13 quoted lines
> On Mon, Jun 04, 2007 at 01:45:26PM -0700, Linus Torvalds wrote:
> > I'd like to point out some more upsides and downsides of "git rebase".
> > 
> > Downsides:
> > 
> >  - you're rewriting history, so you MUST NOT have made your pre-rebase 
> >    changes available publicly anywhere else (or you are in a world of pain 
> >    with duplicate history and tons of confusion)
> 
> Wouldn't it be possible to register the rebase somewhere (weak parent?
> some kind of note not influencing the sha1 ?) that pull/merge could
> follow?  Rebases and cherry-picking are a special kind of merge, so
> maybe it can be handled like one where it counts...

Well, it's not like duplicate history is a disaster from a *technical* angle. It might be a small space-waster etc, but that's really not the real issue.

The problem with duplicate history is that it just makes things much harder to look at. IOW, it's *messy*. So the "tons of confusion" part is basically purely about humans, not about git itself. Git won't really care, and there's no reason to "handle" it specially in that sense.

So I would strongly discourage people from ever making rebased history available, but that's not because of any particular git technical issues as just because of it being a good way to confuse all the _humans_ involved.

(That said, gits own 'pu' branch ends up jumping around, and it hasn't caused all that much confusion, so maybe I'm overstating even that human confusion)

			Linus
Previous: Olivier GalibertNext: Joel Becker
Message 11 of 21 in “Git Vs. Svn for a project which *must* distribute binaries too.”
  1. Bryan ChildsJun 4, 2007
  2. Julian PhillipsJun 4, 2007
  3. Theodore TsoJun 4, 2007
  4. Johannes SchindelinJun 4, 2007
  5. Linus TorvaldsJun 4, 2007
  6. Bryan ChildsJun 4, 2007
  7. Linus TorvaldsJun 4, 2007
  8. Thomas GlanzmannJun 4, 2007
  9. Linus TorvaldsJun 4, 2007
  10. Olivier GalibertJun 4, 2007
  11. Linus TorvaldsJun 4, 2007
  12. Joel BeckerJun 4, 2007
  13. Theodore TsoJun 5, 2007
  14. Johannes SchindelinJun 5, 2007
  15. Martin LanghoffJun 4, 2007
  16. Daniel BarkalowJun 4, 2007
  17. Linus TorvaldsJun 5, 2007
  18. david@lang.hmJun 5, 2007
  19. Linus TorvaldsJun 5, 2007
  20. Jakub NarebskiJun 4, 2007
  21. Jakub NarebskiJun 6, 2007

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.