From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carl Worth Subject: Re: [PATCH] Include a git-push example for creating a remote branch Date: Thu, 06 Sep 2007 08:48:57 -0700 Message-ID: <874pi7dcba.wl%cworth@cworth.org> References: <20070906044408.GA588@spearce.org> <20070906050127.GS18160@spearce.org> <7v8x7ke260.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Thu_Sep__6_08:48:57_2007-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Cc: "Miles Bader" , "Shawn O. Pearce" , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Thu Sep 06 17:56:47 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 1ITJim-0000AY-Op for gcvg-git@gmane.org; Thu, 06 Sep 2007 17:56:45 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756051AbXIFP4k (ORCPT ); Thu, 6 Sep 2007 11:56:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755094AbXIFP4k (ORCPT ); Thu, 6 Sep 2007 11:56:40 -0400 Received: from olra.theworths.org ([82.165.184.25]:64751 "EHLO olra.theworths.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755120AbXIFP4j (ORCPT ); Thu, 6 Sep 2007 11:56:39 -0400 Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C86AA431FA5; Thu, 6 Sep 2007 08:56:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bTcA1i+wjjZs; Thu, 6 Sep 2007 08:56:34 -0700 (PDT) Received: from raht.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9DCCE431FA4; Thu, 6 Sep 2007 08:56:33 -0700 (PDT) In-Reply-To: <7v8x7ke260.fsf@gitster.siamese.dyndns.org> 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_Sep__6_08:48:57_2007-1 Content-Type: text/plain; charset=US-ASCII On Wed, 05 Sep 2007 23:30:31 -0700, Junio C Hamano wrote: > It is just nobody felt strong enough reason to sugarcoat the > normalized syntax with something like: > > git push --create remote foo v1.2.0 Couldn't we just use an initial + to indicate this as well? I would imagine an exchange like this: $ git push remote foo git: No branch 'foo' exists in the remote server, to create it use: git push remote +foo But regardless of the syntax, it would be nice if the error message were explicit about how to achieve the goal the user wants. It's just that forcing the user to say "foo:refs/heads/foo" seems a way to force the user to get plumbing grime on their clean hands. -Carl --pgp-sign-Multipart_Thu_Sep__6_08:48:57_2007-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBG4CFp6JDdNq8qSWgRAvyIAJ4+GyXDkwZ7NAPZxMGSADV9tXVvpQCfQuLk ahm5Dasi5Vs4Ms1kybBAm9M= =ZcgT -----END PGP SIGNATURE----- --pgp-sign-Multipart_Thu_Sep__6_08:48:57_2007-1--