worktree: add --detach option
commit39ecb27436296361371d3caadcc9bc4a4e0b556d
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 6 Jul 2015 17:30:52 +0000 (6 13:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2015 18:07:46 +0000 (6 11:07 -0700)
treef750a01755147376c96398a3bc3acf91b2ffe6f7
parentf43254440d56da1fd52216cbebd5c285b20985e6
worktree: add --detach option

One of git-worktree's roles is to populate the new worktree, much like
git-checkout, and thus, for convenience, ought to support several of the
same shortcuts. Toward this goal, add a --detach option to detach HEAD
in the new worktree.

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