worktree: add --force option
commitf43254440d56da1fd52216cbebd5c285b20985e6
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 6 Jul 2015 17:30:51 +0000 (6 13:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2015 18:07:46 +0000 (6 11:07 -0700)
treee1bcf94692dad2c2ba6bdc820963e8e8efab32b2
parentfc56361f58a20f1259e1ba2364424ec27825c37f
worktree: add --force option

By default, "git worktree add" refuses to create a new worktree when
the requested branch is already checked out elsewhere. Add a --force
option to override this safeguard.

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