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

Re: Splitting up a repository

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Dec 4, 2010, 07:41 UTC
Message-ID
<AANLkTinLFZTFgov9RtNTFS36BV0xyTm6=kpDE3VZFcEG@mail.gmail.com>
In-Reply-To
<4CF9EA60.7040402@cs.wisc.edu>
On Sat, Dec 4, 2010 at 2:14 PM, Evan Driscoll <driscoll@cs.wisc.edu> wrote:
Show 22 quoted lines
> On 12/4/2010 1:09, Nguyen Thai Ngoc Duy wrote:
>> On Sat, Dec 4, 2010 at 12:27 PM, Evan Driscoll <driscoll@cs.wisc.edu> wrote:
>>> Say I have a repo where there are directories repo/foo, repo/bar,
>>> repo/baz. 'foo', 'bar', and 'baz' are loosely related -- closely enough
>>> that I put them together initially, but loosely enough that I now wish I
>>> could check out just 'repo/foo'. Since Git doesn't support partial
>>> checkouts (a bit annoying!),
>>
>> Um.. it does support partial checkouts (check out man page of
>> git-read-tree, sparse checkout section). But you must do a full clone
>> (i.e. your repository will have bar and baz, even if you only checkout
>> foo).
>
> That's sort of spiffy, and I did not know about that. So again, thanks.
>
> That said, I did a bit of reading around, and I'm not sure it does what
> I need.
> http://stackoverflow.com/questions/2336580/sparse-checkout-in-git-1-7-0
> is basically what I want, and the answers seem to indicate it isn't
> possible. (In other words, in my example, when I want a checkout of
> repo/foo, the .git directory needs to be a sibling of foo's contents,
> not a sibling of foo.)

If you want different layout too, then no it does not do that. Splitting repo is probably best.

-- 
Duy
Previous: Evan Driscoll
Message 6 of 6 in “Splitting up a repository”
  1. Evan DriscollDec 4, 2010
  2. Jeff KingDec 4, 2010
  3. Evan DriscollDec 4, 2010
  4. Nguyen Thai Ngoc DuyDec 4, 2010
  5. Evan DriscollDec 4, 2010
  6. Nguyen Thai Ngoc DuyDec 4, 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.