Re: Creating sparse checkout in a new linked git worktree
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jan 30, 2018, 19:00 UTC
- Message-ID
- <CAPig+cRiyterpyJfayVmA5Ra_zzyVp6GGSNqe2Tx-Hrrif+U8A@mail.gmail.com>
- In-Reply-To
- <615c04025165d0dff9d6e6b66bf11a41.squirrel@mail.jessiehernandez.com>
On Tue, Jan 30, 2018 at 9:25 AM, Jessie Hernandez <git@jessiehernandez.com> wrote:
Show 6 quoted lines
>> The sparse-checkout file is specific to each worktree, which allows you > to control "sparsity" on a worktree by worktree basis. Therefore, you > should create $GIT_DIR/worktrees/<id>/info/sparse-checkout instead > (where <id> is "new-branch" in your example). > > Would it help if this was added to the documentation of git-read-tree
It probably would. Would you be interested in submitting a patch (mentioning 'git rev-parse --git-path info/sparse-checkout', as suggested by Duy)?