From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Baudis Subject: Re: ref name troubles, was Re: [PATCH v2] Introduce % as shortcut to the tracked branch Date: Fri, 20 Mar 2009 12:50:43 +0100 Message-ID: <20090320115043.GB8940@machine.or.cz> References: <7vr60ubgul.fsf@gitster.siamese.dyndns.org> <20090320004029.GX23521@spearce.org> <20090320060545.GB27008@coredump.intra.peff.net> <7vprgc4r6h.fsf@gitster.siamese.dyndns.org> <20090320111238.GZ8940@machine.or.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Junio C Hamano , Jeff King , "Shawn O. Pearce" , Andreas Gruenbacher , git@vger.kernel.org To: Johannes Schindelin X-From: git-owner@vger.kernel.org Fri Mar 20 12:52:28 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1LkdGq-0002sM-D0 for gcvg-git-2@gmane.org; Fri, 20 Mar 2009 12:52:16 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753120AbZCTLur (ORCPT ); Fri, 20 Mar 2009 07:50:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750999AbZCTLur (ORCPT ); Fri, 20 Mar 2009 07:50:47 -0400 Received: from w241.dkm.cz ([62.24.88.241]:44603 "EHLO machine.or.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750703AbZCTLuq (ORCPT ); Fri, 20 Mar 2009 07:50:46 -0400 Received: by machine.or.cz (Postfix, from userid 2001) id 6A447204C0C6; Fri, 20 Mar 2009 12:50:43 +0100 (CET) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Fri, Mar 20, 2009 at 12:46:19PM +0100, Johannes Schindelin wrote: > Hi, > > On Fri, 20 Mar 2009, Petr Baudis wrote: > > > On Fri, Mar 20, 2009 at 10:30:29AM +0100, Johannes Schindelin wrote: > > > On Thu, 19 Mar 2009, Junio C Hamano wrote: > > > > > > > I think you are right. It is just "git branch" and perhaps "git > > > > update-ref" are too loose in enforcing what can be created. > > > > > > "git branch" I agree with, but not "git update-ref". As plumbing, the > > > latter should be much more allowing, feeding rope aplenty (but also > > > allowing cool tricks we do not think about yet). > > > > We shouldn't allow creating insane ref names even with update-ref. That > > way porcelains cannot rely on update-ref to sanity check the user's > > crap. At most, maybe you might want to bypass this check with some force > > switch, though I really can't quite imagine why. > > You really cannot imagine? You, the author of filter-branch? People _do_ > have fscked-up repositories, but they get really angry when they cannot > use rebase or filter-branch on them. They can rename the ref as the first step of a cleanup, can't they? -- Petr "Pasky" Baudis The average, healthy, well-adjusted adult gets up at seven-thirty in the morning feeling just terrible. -- Jean Kerr