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: Wed, 14 Oct 2009 16:48:29 -0400 (EDT) Message-ID: References: <76718490910141156g440ee455t2e1db72ad72b7049@mail.gmail.com> <7v7huxbtbk.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: Daniel Barkalow , Jay Soffian , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Wed Oct 14 22:56:51 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 1MyAof-0007lo-Si for gcvg-git-2@lo.gmane.org; Wed, 14 Oct 2009 22:51:26 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759886AbZJNUtL (ORCPT ); Wed, 14 Oct 2009 16:49:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757204AbZJNUtL (ORCPT ); Wed, 14 Oct 2009 16:49:11 -0400 Received: from relais.videotron.ca ([24.201.245.36]:26459 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755227AbZJNUtK (ORCPT ); Wed, 14 Oct 2009 16:49:10 -0400 Received: from xanadu.home ([66.130.28.92]) by VL-MO-MR003.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KRI00CY6V4T56A0@VL-MO-MR003.ip.videotron.ca> for git@vger.kernel.org; Wed, 14 Oct 2009 16:48:29 -0400 (EDT) X-X-Sender: nico@xanadu.home In-reply-to: <7v7huxbtbk.fsf@alter.siamese.dyndns.org> 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 Wed, 14 Oct 2009, Junio C Hamano wrote: > Nicolas Pitre writes: > > > On Wed, 14 Oct 2009, Daniel Barkalow wrote: > > > >> On Wed, 14 Oct 2009, Jay Soffian wrote: > >> > >> > $ git commit -m "blah" > >> > Cannot commit while not on any branch. Please use git commit -b to > >> > specify the name of a new branch to commit to, or use git commit -f to > >> > force a detached commit. > >> > >> The difference is that some experienced users depend on being able to > >> commit while not on a branch, and want to not get a warning for every > >> commit while not on a branch. > > > > I assume that the -f would silence any warning? > > It won't help to alleviate my irritation if I need to give -f to each and > every invocation of "git commit" while detached, though. Agreed. Presumably some expert mode config would imply -f automatically. Nicolas