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

Re: on subtree checkout

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Feb 24, 2008, 17:22 UTC
Message-ID
<200802241822.42594.robin.rosenberg.lists@dewire.com>
In-Reply-To
<vpqve4efiql.fsf@bauges.imag.fr>
söndagen den 24 februari 2008 skrev Matthieu Moy:
> I suppose you have to forbid merges where anything non-trivial happens
> outside the tree (i.e. allow it only if the set of renamed or changed
> files is disjoint outside the tree, or only if only one of the
> branches to merge have changes outside the tree).

One still has to allow it, maybe forcing a bigger checkout in those cases.

> That's probably not such a big limitation in practice for the user,
> since by definition the user won't modify the files outside its tree,
> so he can at least still merge with the branch he branched from.

Partial checkout is for convenience and speed of worktree operations as I see it. Other people could have other reasons for it. Branch switching takes a lot of time with big repos, same thing with git status, add -u etc. Restricting the worktree scan for uninteresting parts speeds things up.

> I can see another problem: partial checkout is really interesting only
> if you can do a partial clone ("partial" here in the sense "subtree").
> Otherwise, your .git/ still eats your disk space and "clone" still
> needs your bandwidth for something you won't use.

Better and more of "global" operations on repos with submodules might make them more bearable, and maybe even convenient, for example doing a git diff over a set of submodules detecting renames between submodules.

-- robin
Previous: Matthieu MoyNext: Johannes Schindelin
Message 10 of 13 in “on subtree checkout”
  1. Nguyen Thai Ngoc DuyFeb 24, 2008
  2. Robin RosenbergFeb 24, 2008
  3. Jakub NarebskiFeb 24, 2008
  4. Robin RosenbergFeb 24, 2008
  5. Jakub NarebskiFeb 24, 2008
  6. Jakub NarebskiFeb 24, 2008
  7. Nguyen Thai Ngoc DuyFeb 24, 2008
  8. Jakub NarebskiFeb 24, 2008
  9. Matthieu MoyFeb 24, 2008
  10. Robin RosenbergFeb 24, 2008
  11. Johannes SchindelinFeb 26, 2008
  12. David SymondsFeb 26, 2008
  13. Johannes SchindelinFeb 26, 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.