Re: [RFC PATCH v3 8/8] --sparse for porcelains
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Aug 12, 2009, 07:31 UTC
- Message-ID
- <4A826FD4.5080201@viscovery.net>
- In-Reply-To
- <1250005446-12047-9-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy schrieb:
Show 9 quoted lines
> This series is useless until now because no one would use read-tree to > checkout. At least with this, you can really use/test the series. > Porcelain design was originally "if you have .git/info/sparse, > porcelains will use it, if you don't like that, remove > .git/info/sparse" while plumblings have an option to > enable/disable this feature. > > And I still like that behavior. How about we enable sparse checkout > by default for porcelains and make a config option to disable it?
I would enable sparse checkout by default even for plumbing. Whether the checkout area is sparse should always be governed by .git/info/sparse. This way, existing scripts and aliases should automatically work in sparse worktrees.
BTW, the name .git/info/sparse is perhaps a bit too technical in the sense that only git developers know that this feature runs under the name "sparse checkout". Perhaps it should be named
.git/info/indexonly .git/info/nocheckout
or so.
-- Hannes