worktree: introduce "add" command
commitfc56361f58a20f1259e1ba2364424ec27825c37f
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 6 Jul 2015 17:30:50 +0000 (6 13:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2015 18:07:45 +0000 (6 11:07 -0700)
tree293d47e4d744f245ba7e656af919f5c4c7f0170a
parentbdf0f375b9cf1c272233583a03eddef1772da99e
worktree: introduce "add" command

The plan is to relocate "git checkout --to" functionality to "git
worktree add". As a first step, introduce a bare-bones git-worktree
"add" command along with documentation. At this stage, "git worktree
add" merely invokes "git checkout --to" behind the scenes, but an
upcoming patch will move the actual functionality
(checkout.c:prepare_linked_checkout() and its helpers) to worktree.c.

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