Re: [PATCH v2 18/23] checkout: retire --to option
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jul 4, 2015, 03:04 UTC
- Message-ID
- <CACsJy8Cog302k+-tFVJqneh3ShWYL57qhHQk8cFqvYX9Qc9q8Q@mail.gmail.com>
- In-Reply-To
- <1435969052-540-19-git-send-email-sunshine@sunshineco.com>
On Sat, Jul 4, 2015 at 7:17 AM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 19 quoted lines
> Now that "git worktree add" has achieved user-facing feature-parity with > "git checkout --to", retire the latter. > > Move the actual linked worktree creation functionality, > prepare_linked_checkout() and its helpers, verbatim from checkout.c to > worktree.c. > > This effectively reverts changes to checkout.c by 529fef2 (checkout: > support checking out into a new working directory, 2014-11-30) with the > exception of merge_working_tree() and switch_branches() which still > require specialized knowledge that a the checkout is occurring in a > newly-created linked worktree (signaled to them by the private > GIT_CHECKOUT_NEW_WORKTREE environment variable). > > Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> > --- > builtin/checkout.c | 156 +---------------------------------------------------- > builtin/worktree.c | 138 ++++++++++++++++++++++++++++++++++++++++++++--- > 2 files changed, 133 insertions(+), 161 deletions(-)
If I didn't lose track of changes, "--to" is still described in git-checkout.txt?
-- Duy