Re: [PATCH] checkout: warn about 'branch name' rather than 'local branch'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 29, 2010, 21:42 UTC
- Message-ID
- <7vvdekh9kb.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1264799342-11093-1-git-send-email-srabbelier@gmail.com>
Sverre Rabbelier <srabbelier@gmail.com> writes:
Show 13 quoted lines
> These days, you can say "git checkout topic" to automagically create > a local "topic" branch that forks from "origin/topic" remote tracking > branch when you have one, thanks to Dscho's UI improvement ideas. As > such it is more appropriate to say that the user is checking out > something that is not a branch name, rather than saying it is not a > 'local branch'. > > Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com> > --- > > Junio, I used part of your reply as the commit message, is that ok? > > Only change is s/local branch/branch name/.
I explained why I think that is not solving the real problem. To a user faced with an unexpected detached HEAD situation, it is not very important to explain how we were forced to detach (i.e. because you didn't tell me to switch to a branch).