Re: [PATCH] Detached HEAD (experimental)
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Jan 10, 2007, 00:18 UTC
- Message-ID
- <20070110001822.GG30023@spearce.org>
- In-Reply-To
- <7vd55nivx7.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 5 quoted lines
> Linus Torvalds <torvalds@osdl.org> 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. ;-)
Show 8 quoted lines
> > 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.