checkout: drop intimate knowledge of newly created worktree
commit272be14a85d3a8dca2ca842a3f35dfcf5895d2a6
authorEric Sunshine <sunshine@sunshineco.com>
Fri, 17 Jul 2015 23:00:17 +0000 (17 19:00 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Jul 2015 18:29:52 +0000 (20 11:29 -0700)
treee560bb3a99f7e083c08d16a406b7eaa445179b33
parent1c56190aec502d946eb3db7365d6e54e2ffc7bd2
checkout: drop intimate knowledge of newly created worktree

Now that git-worktree no longer relies upon git-checkout for new branch
creation, new worktree HEAD set up, or initial worktree population,
git-checkout no longer needs intimate knowledge that it may be operating
in a newly created worktree. Therefore, drop 'new_worktree_mode' and the
private GIT_CHECKOUT_NEW_WORKTREE environment variable by which
git-worktree communicated to git-checkout that it was being invoked to
manipulate a new worktree.

This reverts the remaining changes to checkout.c by 529fef2 (checkout:
support checking out into a new working directory, 2014-11-30).

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c