From: Jeff King Date: Mon, 08 Jan 2007 13:17:35 GMT Subject: Re: [PATCH] Detached HEAD (experimental) Message-ID: <20070108131735.GA2647@coredump.intra.peff.net> In-Reply-To: <7vbql9ydd7.fsf@assigned-by-dhcp.cox.net> On Mon, Jan 08, 2007 at 03:19:48AM -0800, Junio C Hamano wrote: > I decided to fast-track this one. With a handful fix-ups, this > is now at the tip of 'next'. I haven't seen the code, waiting for kernel.org to mirror, but I have a question... > The primary difference from the one we discussed, and then has > been sitting in 'pu', is that coming back from the detached HEAD > state is allowed only with '-f' or to a branch that is a > fast-forward of HEAD. Hrm. So does that mean this doesn't work (without -f): git checkout v1.4.0 ... look around ... git checkout v1.2.0 I think a better (but more expensive) check would be "coming back from the detached HEAD is allowed only with '-f' or if HEAD is an ancestor of any non-HEAD ref." -Peff