Re: [RFC PATCH v3 7/8] Support sparse checkout in unpack_trees() and read-tree
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Aug 11, 2009, 21:38 UTC
- Message-ID
- <m3ab26owub.fsf@localhost.localdomain>
- In-Reply-To
- <2729632a0908111418m57e03d8as9c122cbb52efc21a@mail.gmail.com>
skillzero@gmail.com writes:
> 2009/8/11 Nguyễn Thái Ngọc Duy <pclouds@gmail.com>:
Show 5 quoted lines
> > [1] .git/info/sparse has the same syntax as .git/info/exclude. Files > > that match the patterns will be set as CE_VALID. > > Does this mean it will only support excluding paths you don't want > rather than letting you only include paths you do want?
Errr... what I read is that paths set by .git/info/sparse would be excluded from checkout (marked as assume-unchanged / CE_VALID).
But if it is the same mechanism as gitignore, then you can use ! prefix to set files (patterns) to include, e.g.
!Documentation/ *
(I think rules are processed top-down, first matching wins).
Show 6 quoted lines
> I'm currently using your other patch series that lets you include or > exclude paths (via config variable) and I find that I mostly use the > include side of it with only a few excluded paths. This is because I > typically want to include only a small subset of the repository so > using excludes would require a pretty large list and any time somebody > adds new files, I'd have to update the exclude list.
Not true, see above.
-- Jakub Narebski Git User's Survey 2009 http://tinyurl.com/GitSurvey2009