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

Re: on subtree checkout

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Feb 24, 2008, 15:59 UTC
Message-ID
<vpqve4efiql.fsf@bauges.imag.fr>
In-Reply-To
<200802241645.49718.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 13 quoted lines
> Nguyen Thai Ngoc Duy wrote:
>> On Sun, Feb 24, 2008 at 5:03 PM, Jakub Narebski <jnareb@gmail.com> wrote:
>>>
>>> "Nguyen Thai Ngoc Duy" <pclouds@gmail.com> writes:
>>>
>>>> I'm going to implement subtree checkout. [...]
>>>
>>>  As far as I can see the problem lies in merging...
>> 
>> Can you elaborate? I'm really noob at merging.
>
> What to do if when merging, or rebasing, there is conflict _outside_
> checked out subtree?

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).

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.

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.

-- 
Matthieu
Previous: Jakub NarebskiNext: Robin Rosenberg
Message 9 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.