Merge branch 'sb/checkout-explit-detach-no-advice'
authorJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2016 22:34:15 +0000 (15:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2016 22:34:15 +0000 (15:34 -0700)
commite6dab9f62fbda86d0adb530f0c2a543e3e2ed118
tree12179049c1db721b1aa60404b3e8d75bdd5e266e
parent643b62213e7da395354b578271f37711b6aed61b
parent779b88a91fb9719683bed78c81ef6ace1cedd7da
Merge branch 'sb/checkout-explit-detach-no-advice'

"git checkout --detach <branch>" used to give the same advice
message as that is issued when "git checkout <tag>" (or anything
that is not a branch name) is given, but asking with "--detach" is
an explicit enough sign that the user knows what is going on.  The
advice message has been squelched in this case.

* sb/checkout-explit-detach-no-advice:
  checkout: do not mention detach advice for explicit --detach option
builtin/checkout.c