diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2015-07-06 13:30:55 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-06 11:07:47 -0700 |
commit | b979d95027242455b10e6f566b0e96c5f30cc908 (patch) | |
tree | eb0f31e37155c324c37c76e3a48637ccfe74d2ad /t/t1100-commit-tree-options.sh | |
parent | tests: worktree: retrofit "checkout --to" tests for "worktree add" (diff) | |
download | tgif-b979d95027242455b10e6f566b0e96c5f30cc908.tar.xz |
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>
Diffstat (limited to 't/t1100-commit-tree-options.sh')
0 files changed, 0 insertions, 0 deletions