checkout: do not mention detach advice for explicit --detach option
commit779b88a91fb9719683bed78c81ef6ace1cedd7da
authorStefan Beller <sbeller@google.com>
Mon, 15 Aug 2016 18:40:21 +0000 (15 11:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Aug 2016 22:01:45 +0000 (15 15:01 -0700)
treea17291d251b0c6b912a93e76ec2ab6083f24dbb0
parente0c1ceafc5bece92d35773a75fff59497e1d9bd5
checkout: do not mention detach advice for explicit --detach option

When a user asked for a detached HEAD specifically with `--detach`,
we do not need to give advice on what a detached HEAD state entails as
we can assume they know what they're getting into as they asked for it.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
t/t2020-checkout-detach.sh