checkout: retire --to option
commitb979d95027242455b10e6f566b0e96c5f30cc908
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 6 Jul 2015 17:30:55 +0000 (6 13:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2015 18:07:47 +0000 (6 11:07 -0700)
treeeb0f31e37155c324c37c76e3a48637ccfe74d2ad
parentf194b1ef6ee81788a45053fa6f7409233fc54276
checkout: retire --to option

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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-checkout.txt
builtin/checkout.c
builtin/worktree.c