Re: [PATCH] tone down the detached head warning

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nicolas Pitre <nico@...>
Cc: Junio C Hamano <junkio@...>, <git@...>
Date: Wednesday, January 31, 2007 - 11:54 pm

On Wed, Jan 31, 2007 at 10:47:31PM -0500, Nicolas Pitre wrote:


OK, so let's not lie about it, then. But that doesn't mean we can't
explain further. What about:

$ git checkout origin/pu
Detached your HEAD (based on remote origin/pu) -- you are not on any branch
...

Except that I think the line is getting a bit long. But the point is to
explain _why_ we're detached (you could even put a different note for
tags). If a user already knows that 'git checkout v1.4.4.4' is going to
put him in a detached state, then he doesn't really care about the
message one way or the other. But if he doesn't know (and there is no
clue on the command line, except for the fact that we already know
v1.4.4.4 is a tag and origin/pu is a remote tracking branch), then it
might make it more why it happened.

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] tone down the detached head warning, Junio C Hamano, (Wed Jan 31, 11:23 pm)
[PATCH] detached HEAD -- finishing touches, Junio C Hamano, (Thu Feb 1, 5:08 am)
Re: [PATCH] detached HEAD -- finishing touches, Theodore Tso, (Thu Feb 1, 5:52 pm)
Re: [PATCH] detached HEAD -- finishing touches, Junio C Hamano, (Thu Feb 1, 9:11 pm)
Re: [PATCH] detached HEAD -- finishing touches, Carl Worth, (Thu Feb 1, 9:27 pm)
Re: [PATCH] detached HEAD -- finishing touches, Junio C Hamano, (Thu Feb 1, 9:30 pm)
Re: [PATCH] detached HEAD -- finishing touches, Carl Worth, (Thu Feb 1, 9:46 pm)
Re: [PATCH] detached HEAD -- finishing touches, Junio C Hamano, (Thu Feb 1, 10:38 pm)
Re: [PATCH] detached HEAD -- finishing touches, Theodore Tso, (Thu Feb 1, 9:16 pm)
[PATCH] git-checkout: disable guides how to switch branches ..., Matthias Lederhofer, (Thu Feb 1, 2:44 pm)
Re: [PATCH] git-checkout: disable guides how to switch branc..., Matthias Lederhofer, (Thu Feb 1, 4:51 pm)
Re: [PATCH] git-checkout: disable guides how to switch branc..., Matthias Lederhofer, (Thu Feb 1, 5:23 pm)
Re: [PATCH] detached HEAD -- finishing touches, Alex Riesen, (Thu Feb 1, 5:53 am)
Re: [PATCH] detached HEAD -- finishing touches, Alex Riesen, (Thu Feb 1, 5:54 am)
RE: [PATCH] detached HEAD -- finishing touches, Raimund Bauer, (Thu Feb 1, 5:46 am)
Re: [PATCH] tone down the detached head warning, Jeff King, (Wed Jan 31, 11:29 pm)
Re: [PATCH] tone down the detached head warning, Nicolas Pitre, (Wed Jan 31, 11:47 pm)
Re: [PATCH] tone down the detached head warning, Jeff King, (Wed Jan 31, 11:54 pm)