From: Carl Worth Subject: Re: [RFC] git-remote Date: Fri, 05 Jan 2007 13:08:25 -0800 Message-ID: <87ac0xgp12.wl%cworth@cworth.org> References: <7vfyarokk7.fsf@assigned-by-dhcp.cox.net> <8aa486160701050459p4da586cdk2c2ddaabda5b4ca7@mail.gmail.com> <8aa486160701051153h52a93c16k2b190f58e652cb2e@mail.gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Fri_Jan__5_13:08:24_2007-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Cc: "Johannes Schindelin" , "Junio C Hamano" , git@vger.kernel.org X-From: git-owner@vger.kernel.org Sat Jan 06 02:34:46 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 1H30SM-0004h8-4V for gcvg-git@gmane.org; Sat, 06 Jan 2007 02:34:46 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751065AbXAFBen (ORCPT ); Fri, 5 Jan 2007 20:34:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751071AbXAFBem (ORCPT ); Fri, 5 Jan 2007 20:34:42 -0500 Received: from mx1.redhat.com ([66.187.233.31]:57860 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751063AbXAFBem (ORCPT ); Fri, 5 Jan 2007 20:34:42 -0500 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l061YcNo012528; Fri, 5 Jan 2007 20:34:38 -0500 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l061YWxV026397; Fri, 5 Jan 2007 20:34:32 -0500 Received: from raht.cworth.org (sebastian-int.corp.redhat.com [172.16.52.221]) by mail.boston.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l061YVgL027570; Fri, 5 Jan 2007 20:34:31 -0500 To: "=?ISO-8859-1?Q?Santi_B=E9jar?=" In-Reply-To: <8aa486160701051153h52a93c16k2b190f58e652cb2e@mail.gmail.com> 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_Fri_Jan__5_13:08:24_2007-1 Content-Type: text/plain; charset=US-ASCII On Fri, 5 Jan 2007 20:53:22 +0100, "=?ISO-8859-1?Q?Santi_B=E9jar?=" wrote: > I was talking about the default name, so you could do: > > $ git clone\ > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git > $ cd linux-2.6 > $ git remote add \ > git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-2.6.git > $ git remote show libata-2.6 Yes. I'd go one further and say that it'd be really nice if git-clone could be seen as equivalent, (and basically equivalent internally), to a simple sequence of steps that could be performed manually. Something like: name=$(basename $url) mkdir $name cd $name git init-db git remote add $url git pull $name I haven't played with the new git-remote stuff at all yet, but the rest of the above does work already, (but for a "warning: no common commits" message). The only thing missing compared to git-clone is the remotes configuration. So if the new git-remote can provide behavior equivalent to what git clone provides, that would be excellent. If for one have often wanted the ability to easily add a second remote as if from git-clone. -Carl --pgp-sign-Multipart_Fri_Jan__5_13:08:24_2007-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFnr5J6JDdNq8qSWgRArJ8AJ48TnPsHMM1PNcuMZoNeJTDUwTkYACfQaOe 5/Ev40pr+rjWuaEvimMOBK0= =29Nn -----END PGP SIGNATURE----- --pgp-sign-Multipart_Fri_Jan__5_13:08:24_2007-1--