From: Shawn O. Pearce Date: Wed, 10 Jan 2007 00:18:22 GMT Subject: Re: [PATCH] Detached HEAD (experimental) Message-ID: <20070110001822.GG30023@spearce.org> In-Reply-To: <7vd55nivx7.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > Linus Torvalds writes: > > - git checkout will refuse to switch AWAY from a detached head unless the > > SHA1 of the detached head exactly matches some other branch. > > ... or an existing "ref^{commit}". I think that was implied. ;-) > > I'd love to see the detached HEAD series move into "master", but I do > > think we should make sure that people can't drop their work easily by > > mistake, and I think the above suggestion is both simple and workable. > > > > Comments? > > I agree with the "reachability is wrong -- you would lose the > point in the middle" reasoning. I have no problem with that. Forget the reachability thing entirely. My point about reset --hard/--soft probably also needing this check still stands however. -- Shawn.