Re: [PATCH] checkout: indicate when a detached head is checked out for a branch
- From
Max Kirillov <max@max630.net>
- Date
- Jul 18, 2014, 14:13 UTC
- Message-ID
- <CAF7_NFRdDi_dgsooX8o9J12h39yGamoKUW4djZ0=arMrxBZbdg@mail.gmail.com>
- In-Reply-To
- <53C920D6.80104@drmicha.warpmail.net>
Hi.
On Fri, Jul 18, 2014 at 4:27 PM, Michael J Gruber <git@drmicha.warpmail.net> wrote:
> Duy Nguyen venit, vidit, dixit 18.07.2014 12:58: >> This is what this series needs, user's opinions (bad or good).
Actually, if options "-b branch" works with the "--to" (does it?), then user probably shouldn't need to create detached checkouts (I need them only for scripts), so this action is probably a mistake. And when user does want to create detached checkout he can use the "--detach" option.
So I would say checkout of already checked out branch should fail, suggesting using "-b" or "--detach" options.
-- Max