worktree: make --detach mutually exclusive with -b/-B
commitab0b2c53ed853e34def18e7b84acd7da7e2ddd49
authorEric Sunshine <sunshine@sunshineco.com>
Fri, 17 Jul 2015 23:00:08 +0000 (17 19:00 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Jul 2015 18:29:24 +0000 (20 11:29 -0700)
tree6c89e86f3f5ec319aa1c4b0c4cdee378dc867fb4
parent5dd6e234a75bb96e159c4e7d30f6acb28c3283a0
worktree: make --detach mutually exclusive with -b/-B

Be consistent with git-checkout which disallows this (not particularly
meaningful) combination.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c
t/t2025-worktree-add.sh