Re: [RFC PATCH v3 8/8] --sparse for porcelains
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Aug 18, 2009, 01:43 UTC
- Message-ID
- <fcaeb9bf0908171843x6ab0763dqff7e8aea0443c374@mail.gmail.com>
- In-Reply-To
- <2729632a0908171734p16d6ee7dm5f62848f7625ffbc@mail.gmail.com>
On Tue, Aug 18, 2009 at 7:34 AM, <skillzero@gmail.com> wrote:
Show 11 quoted lines
> On Mon, Aug 17, 2009 at 5:17 PM, Jakub Narebski<jnareb@gmail.com> wrote: > >> There is e.g. question if "git grep" should search "no-checkout" files; >> in the "assume-unchanged" case it should, I think, search index version. > > I would like it to git grep to not search paths outside the sparse > area (although --no-sparse would be nice for git grep in case you did > want to search everything). The main reason I want sparse checkouts is > for performance reasons. For example, git grep can take 10 minutes on > my full repository so excluding paths outside the sparse area would > reduce that to a few seconds.
That's a porcelain question that I'd leave it for now. FWIW you can do something like this:
git ls-files -v|grep '^H'|cut -c 2-|xargs git grep
/me misses "cleartool find"
-- Duy