Re: [PATCH v2] worktree: add: introduce --checkout option
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Mar 25, 2016, 01:22 UTC
- Message-ID
- <CAPig+cTtRgMz_6oEXmBN2MHG65arq51JsoBL9QeWBFNLgFnCmw@mail.gmail.com>
- In-Reply-To
- <CABEEbiBM-CTJdmOukLjfrmnmsSTwNzx+ELfO=BtgApT__QZu-g@mail.gmail.com>
[please respond inline rather than top-posting]
On Thu, Mar 24, 2016 at 5:52 AM, Zhang Lei <zhanglei002@gmail.com> wrote:
Show 6 quoted lines
> 2016-03-24 17:16 GMT+08:00 Duy Nguyen <pclouds@gmail.com>: >> I think we can follow git-clone and use '-n' for this. [...] > > 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.
My impression was that Duy was suggesting only that -n be recognized as shorthand for --no-checkout, however, git-worktree already recognizes -n as shorthand for --dry-run (as a consequence of using OPT__DRY_RUN), so -n as shorthand for --no-checkout is a no-go.