From: Carl Worth Subject: Re: Instructions concerning detached head lead to lost local changes Date: Thu, 01 Feb 2007 18:06:43 -0800 Message-ID: <87abzx9uto.wl%cworth@cworth.org> References: <87mz3xa3vr.wl%cworth@cworth.org> <7v1wl9mj48.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Thu_Feb__1_18:06:43_2007-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Fri Feb 02 03:06:51 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1HCnpD-0006Jl-5v for gcvg-git@gmane.org; Fri, 02 Feb 2007 03:06:51 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422769AbXBBCGq (ORCPT ); Thu, 1 Feb 2007 21:06:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423072AbXBBCGq (ORCPT ); Thu, 1 Feb 2007 21:06:46 -0500 Received: from cworth.org ([217.160.249.188]:60034 "EHLO theworths.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1422769AbXBBCGp (ORCPT ); Thu, 1 Feb 2007 21:06:45 -0500 Received: (qmail 17968 invoked from network); 1 Feb 2007 21:06:44 -0500 Received: from localhost (HELO raht.cworth.org) (127.0.0.1) by localhost with SMTP; 1 Feb 2007 21:06:44 -0500 In-Reply-To: <7v1wl9mj48.fsf@assigned-by-dhcp.cox.net> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.4 Mule/5.0 (SAKAKI) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: --pgp-sign-Multipart_Thu_Feb__1_18:06:43_2007-1 Content-Type: text/plain; charset=US-ASCII On Thu, 01 Feb 2007 17:41:11 -0800, Junio C Hamano wrote: > The question is how. I replied already about the no-warning-necessary case. > Alternatively we could add yet another suggestion that let's you > discard the detached HEAD but still keep your local changes. > Either --drop by Linus renamed to some sensible name, or "the > obscure but useful trick". But, when the warning is necessary, then I would recommend changing the -f suggestion to instead suggest --drop, (or whatever it ends up getting named---I don't care much at all). I think it's fine (and safer) to just remove the -f option altogether, rather than adding a third option. -Carl --pgp-sign-Multipart_Thu_Feb__1_18:06:43_2007-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFwpyz6JDdNq8qSWgRAlfGAKCA8pMCqCuDsv6UFqW4E43wLMVCmQCeMe1d 0BXKwVqSQ1peAaYyg5DkOzg= =DxjM -----END PGP SIGNATURE----- --pgp-sign-Multipart_Thu_Feb__1_18:06:43_2007-1--