Subject: Re: [PATCH] Detached HEAD (experimental)

From: Junio C Hamano <[email-masked]>
Date: Tue, 09 Jan 2007 13:20:27 -0800

Jeff King <[email-masked]> writes:

> For example, with what's in next now, I can do this:
>
>   git checkout v1.4.0
>   hack hack hack
>   git commit -m -a 'some changes which will never be seen again'
>   git checkout v1.2.0
>
> I thought the _point_ of the safety valve was not to lose those changes.

Fair enough.

We could always do the check upon "git checkout" from a detached
HEAD state, whether it takes you back on some existing branch or
leaves your HEAD still detached.