Re: [RFC/PATCH] worktree: replace "checkout --to" with "worktree new"
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jul 1, 2015, 17:16 UTC
- Message-ID
- <CAPig+cR67ngGVSA_gSB2ydRJHT5ihf7nJzxmHKSzzQ94BMPAig@mail.gmail.com>
- In-Reply-To
- <CAPig+cRLpJK-C7MApH1vigZS=gmHNeo6RL3S2wXv4B-TFfnq4g@mail.gmail.com>
On Wed, Jul 1, 2015 at 1:13 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 15 quoted lines
> On Wed, Jul 1, 2015 at 12:53 PM, Junio C Hamano <gitster@pobox.com> wrote: >> From: Eric Sunshine <sunshine@sunshineco.com> >> >> The command "git checkout --to <path>" is something of an anachronism, >> encompassing functionality somewhere between "checkout" and "clone". >> The introduction of the git-worktree command, however, provides a proper >> and intuitive place to house such functionality. Consequently, >> re-implement "git checkout --to" as "git worktree add". >> --- >> >> * Duy seems to think "worktree add" is coming, too, so here is a >> trivial tweak of your patch from the last month, with test >> adjustments to 7410 I sent earlier squashed in. > > Thanks. I was planning on re-rolling...
I forgot to mention that the subject needs a slight update: "worktree add" rather than "worktree new".