From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Pitre Subject: Re: [PATCH] Proof-of-concept patch to remember what the detached HEAD was Date: Thu, 15 Oct 2009 15:07:19 -0400 (EDT) Message-ID: References: <76718490910141156g440ee455t2e1db72ad72b7049@mail.gmail.com> <7v7huxbtbk.fsf@alter.siamese.dyndns.org> <7vws2xa9lu.fsf@alter.siamese.dyndns.org> <20091014230934.GC29664@coredump.intra.peff.net> <885649360910150036o72c3bd97ofad85d5316dc5b35@mail.gmail.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: James Pickens , Jeff King , Junio C Hamano , Jay Soffian , git@vger.kernel.org To: Daniel Barkalow X-From: git-owner@vger.kernel.org Thu Oct 15 21:11:15 2009 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1MyVj6-00050f-Gg for gcvg-git-2@lo.gmane.org; Thu, 15 Oct 2009 21:11:04 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762927AbZJOTID (ORCPT ); Thu, 15 Oct 2009 15:08:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762924AbZJOTID (ORCPT ); Thu, 15 Oct 2009 15:08:03 -0400 Received: from relais.videotron.ca ([24.201.245.36]:52898 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762922AbZJOTIB (ORCPT ); Thu, 15 Oct 2009 15:08:01 -0400 Received: from xanadu.home ([66.130.28.92]) by VL-MO-MR001.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KRK00H1IL47ZD90@VL-MO-MR001.ip.videotron.ca> for git@vger.kernel.org; Thu, 15 Oct 2009 15:07:20 -0400 (EDT) X-X-Sender: nico@xanadu.home In-reply-to: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, 15 Oct 2009, Daniel Barkalow wrote: > I think the description used in CVS and SVN (and, I think, others) is that > you're not at the HEAD revision. I think they both account for the state > where you've checked out the revision by number that's the latest > revision, but you still can't grow the branch because you can't > simultaneously stay on r1000 (as requested explicitly) and add a new > commit. > > So maybe the right explanation is: > > $ git checkout master; git branch > * master > $ git checkout origin/master; git branch > * origin/master (not at head) > $ git checkout 123cafe^5; git branch > * 123cafe^5 (not at head) I think this is wrong. Git has multiple heads, and insisting on "not at head" would be extremely confusing. Nicolas