Re: [PATCH] Detached HEAD (experimental)
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jan 9, 2007, 21:20 UTC
- Message-ID
- <7virffkick.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20070109142130.GA10633@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> 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.