Re: [PATCH 3/3] git-read-tree.txt: correct sparse-checkout and skip-worktree description
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Sep 21, 2011, 09:39 UTC
- Message-ID
- <CACsJy8AmvgjCwEikB-0NOf5gV+fcnFsAnhtYj6w6y8kfHu9b9Q@mail.gmail.com>
- In-Reply-To
- <4E79AF57.3010300@drmicha.warpmail.net>
On Wed, Sep 21, 2011 at 7:33 PM, Michael J Gruber <git@drmicha.warpmail.net> wrote:
Show 13 quoted lines
>>> In hindsight, it would have been much better to have a "sparse-ignore" >>> or "sparse-skip" file so that an empty file would mean a full checkout, >>> and the file logic would be analogous to that of .gitignore, excludes >>> and skip-worktree. >> >> .gitignore works towards excluding files. No rule means no excluding. >> sparse-checkout file works towards including files, no rule means no >> inclusion. > > Sure, but with a "sparse-skip" rather than "sparse-checkout", we would > not even need an additional config variable, and the skip-worktree > centered explanations would follow the same logic (no need for the > additional negation) as the ignore files and the new sparse-skip file.
I'll kill that config variable some day when sparse checkout code has no overhead over normal case ("include all").
-- Duy