From: "Nguyen Thai Ngoc Duy" <pclouds@gmail.com>
To: "James Pickens" <jepicken@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [RFC PATCH 00/12] Sparse checkout
Date: Thu, 24 Jul 2008 16:00:16 +0700 [thread overview]
Message-ID: <fcaeb9bf0807240200x10a6a267h4c37e4566da967ba@mail.gmail.com> (raw)
In-Reply-To: <loom.20080724T065737-580@post.gmane.org>
On 7/24/08, James Pickens <jepicken@gmail.com> wrote:
> Nguyen Thai Ngoc Duy <pclouds <at> gmail.com> writes:
>
> > I have not looked at non-builtin commands yet, but I think it's not
> > a big deal. We have several rounds before this series is good enough ;)
> > So in short, sparse prefix will be stored in config, core.sparsecheckout.
> > you have three new commands to enter/update/leave sparse checkout:
> >
> > git clone --path=prefix # clone with sparse checkout
> > git checkout --path=prefix # limit/update checkout paths
> > git checkout --full # stop sparse checkout
> >
>
>
> First things first, thanks a lot for working on this feature. I have an
> enormous project in CVS (144GB repo, containing 65000 directories and
> 463000 files) that I've been wanting to convert to git for a while now,
> and the lack of sparse checkouts was the only thing about git that was
> standing in the way. The project is so big that checking out the whole
> tree all the time is unworkable, and I think my coworkers would hang me
> if I tried to make them use submodules. We already use sparse checkouts
> in CVS to make it manageable, so sparse checkout support in git would
> vastly simplify the transition.
>
> I played around with the patch briefly, and I have a couple of comments
> on the interface.
>
> First, I would want a capability to checkout a directory non-recursively.
> I.e., checkout directory A/B, without also checking out directory A/B/C.
> Perhaps a modifier could be added to a path element to make it
> non-recursive.
This one is difficult (and may probably produce more intrusive patch).
Let's see what I can do.
> Second, I would want a capability to checkout and release directories
> incrementally, similar to how we do it in cvs. For example, I might do
> the following in cvs:
>
> $ cvs co -l A # Checkout dir A non-recursively
> $ cd A
> $ cvs up -l -d B1 B2 # Checkout dirs A/B1 and A/B2 non-recursively
> $ cd B1
> $ cvs up -d C1 C2 # Checkout dirs A/B1/C1 and A/B1/C2 recursively
> (Oops, didn't need C2)
> $ cvs release -d C2
> At this point I would have the following directory tree, assuming the C1
> directory in the repo contained a D1 directory:
>
> A/
> A/B1/
> A/B1/C1/
> A/B1/C1/D1/
> A/B2/
>
> A similar capability in git would be much appreciated.
You can do that with "git checkout --path" (non-recursive checkout aside):
$ git checkout --path=A # checkout full A
$ git checkout --path=A/B1/C1 # no, limit to A/B1/C1 only
$ git checkout --path=A/B1/C1:A/B2 # extend to A/B2 too
>
> Finally, I noticed what I think is a bug: if you do a partial checkout of
> a non-existing directory, you just get an empty tree. I would expect to
> get an error message in that case.
Thanks.
> I hope this is helpful, and thanks again for working on this.
>
> James
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Duy
next prev parent reply other threads:[~2008-07-24 9:01 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-23 14:55 [RFC PATCH 00/12] Sparse checkout Nguyễn Thái Ngọc Duy
2008-07-23 15:38 ` Nguyen Thai Ngoc Duy
2008-07-23 16:15 ` Johannes Schindelin
2008-07-23 16:21 ` Nguyen Thai Ngoc Duy
2008-07-23 16:55 ` Johannes Schindelin
2008-07-24 8:27 ` Nguyen Thai Ngoc Duy
2008-07-24 12:42 ` Johannes Schindelin
2008-07-24 13:29 ` Nguyen Thai Ngoc Duy
2008-07-24 13:44 ` Johannes Schindelin
2008-07-24 13:50 ` Nguyen Thai Ngoc Duy
2008-07-24 16:22 ` Avery Pennarun
2008-07-24 16:38 ` Johannes Schindelin
2008-07-24 18:59 ` Nguyen Thai Ngoc Duy
2008-08-03 18:37 ` Jan Hudec
2008-08-03 20:48 ` Johannes Schindelin
2008-08-04 12:29 ` Nguyen Thai Ngoc Duy
2008-07-24 8:24 ` James Pickens
2008-07-24 9:00 ` Nguyen Thai Ngoc Duy [this message]
2008-07-24 17:59 ` James Pickens
2008-07-24 23:23 ` Nguyen Thai Ngoc Duy
2008-07-24 23:38 ` James Pickens
2008-07-24 9:35 ` Jakub Narebski
2008-07-24 10:58 ` Nguyen Thai Ngoc Duy
2008-07-24 20:01 ` Jakub Narebski
2008-07-24 23:21 ` Nguyen Thai Ngoc Duy
2008-07-25 14:53 ` Avery Pennarun
2008-07-25 0:07 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fcaeb9bf0807240200x10a6a267h4c37e4566da967ba@mail.gmail.com \
--to=pclouds@gmail.com \
--cc=git@vger.kernel.org \
--cc=jepicken@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).