Re: [PATCH v2] worktree: add: introduce --checkout option
- From
Zhang Lei <zhanglei002@gmail.com>
- Date
- Mar 24, 2016, 09:52 UTC
- Message-ID
- <CABEEbiBM-CTJdmOukLjfrmnmsSTwNzx+ELfO=BtgApT__QZu-g@mail.gmail.com>
- In-Reply-To
- <CACsJy8DxcqYKrRi7_ERS3xLWfbbq3bNx-u2NWiXYoNw4yD+0dg@mail.gmail.com>
hi Duy, My PATCH v1 did follow git-clone -n, however, Junio C Hamano and Eric Sunshine suggested that we should avoid doing so , as --no-no-checkout could be confusing.
Yes, core.sparsecheckout is the global switch for all worktrees, but every worktree can have its own info/sparse-checkout.
2016-03-24 17:16 GMT+08:00 Duy Nguyen <pclouds@gmail.com>:
Show 12 quoted lines
> > On Thu, Mar 24, 2016 at 1:07 PM, Ray Zhang <zhanglei002@gmail.com> wrote: > > By adding this option which defaults to true, we can use the > > corresponding --no-checkout to make some customizations before > > the checkout, like sparse checkout, etc. > > I think we can follow git-clone and use '-n' for this. But if it's > sparse checkout that's you're after, be warned that it's not fully > supported (you either enable sparse chekcuot for all worktrees, or > none). > -- > Duy