Re: [PATCH 0/9] [RFC] New sparse-checkout builtin and "cone" mode
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Sep 2, 2019, 17:55 UTC
- Message-ID
- <CAPig+cRJ8cCT4zPJmUmS6mvAhXM1QBZ4LUTtf3Std_45cWR5hA@mail.gmail.com>
- In-Reply-To
- <CABPp-BG8GtdaogbCCZqPXYkhMAqseyAXX0ppjUbg_1hVShGG=Q@mail.gmail.com>
On Sat, Aug 24, 2019 at 1:40 AM Elijah Newren <newren@gmail.com> wrote:
> My $0.02: I think `git worktree add` should not only adopt the setting > of core.sparseCheckout from the current worktree, but it should also > adopt the $GIT_DIR/info/sparse-checkout file too.
As another example in favor of imbuing "git worktree add" with first-class support for this feature (via command-line option and/or inheriting existing settings), the commit message of ef2a0ac9a0 (worktree: add: introduce --checkout option, 2016-03-29) specifically sites sparse checkout as the motivation for adding --no-checkout to "git worktree add".