Re: [RFC PATCH 00/12] Sparse checkout
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Jul 24, 2008, 23:23 UTC
- Message-ID
- <fcaeb9bf0807241623m3fbd476dyc41990d8ef0888e6@mail.gmail.com>
- In-Reply-To
- <loom.20080724T171151-310@post.gmane.org>
On 7/25/08, James Pickens <jepicken@gmail.com> wrote:
Show 19 quoted lines
> > 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 > > > My point was not that incremental checkout is impossible, just that it > would be easier if I didn't have to re-type the full path list again. > Suppose I had 9 directories (A/B1 through A/B9) in my sparse checkout, > and I wanted to add a 10th directory (A/B10). It would be much easier > to type something like > > $ cd A > $ git checkout B10 > > instead of > > $ git checkout --path=A/B1:A/B2:A/B3:A/B4:A/B5:A/B6:A/B7:A/B8:A/B9:A/B10
"git checkout B10" form has already been taken. How about "git checkout --add-path" and "git checkout --remove-path"?
-- Duy