From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Schindelin Subject: Re: [RFC] Fourth round of support for cloning submodules Date: Fri, 25 May 2007 13:32:28 +0100 (BST) Message-ID: References: <7vtzu3yrh9.fsf@assigned-by-dhcp.cox.net> <20070524072216.GE942MdfPADPa@greensroom.kotnet.org> <20070524072945.GO28023@spearce.org> <20070524073652.GH942MdfPADPa@greensroom.kotnet.org> <20070524105112.GI942MdfPADPa@greensroom.kotnet.org> <20070524111645.GK942MdfPADPa@greensroom.kotnet.org> <20070524114354.GN942MdfPADPa@greensroom.kotnet.org> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: git@vger.kernel.org To: Jakub Narebski X-From: git-owner@vger.kernel.org Fri May 25 14:32:41 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 1HrYyE-0007gx-Sc for gcvg-git@gmane.org; Fri, 25 May 2007 14:32:39 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751445AbXEYMcd (ORCPT ); Fri, 25 May 2007 08:32:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751504AbXEYMcd (ORCPT ); Fri, 25 May 2007 08:32:33 -0400 Received: from mail.gmx.net ([213.165.64.20]:43693 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751445AbXEYMcd (ORCPT ); Fri, 25 May 2007 08:32:33 -0400 Received: (qmail invoked by alias); 25 May 2007 12:32:31 -0000 Received: from unknown (EHLO [138.251.11.74]) [138.251.11.74] by mail.gmx.net (mp044) with SMTP; 25 May 2007 14:32:31 +0200 X-Authenticated: #1490710 X-Provags-ID: V01U2FsdGVkX1/3nSwxCjL30aTRkxYQO9uhIByxCpv4LUgZW5GWaU uajsGBh9tHgYf0 X-X-Sender: gene099@racer.site In-Reply-To: X-Y-GMX-Trusted: 0 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Hi, On Fri, 25 May 2007, Jakub Narebski wrote: > Johannes Schindelin wrote: > > On Thu, 24 May 2007, Sven Verdoolaege wrote: > >> On Thu, May 24, 2007 at 12:31:33PM +0100, Johannes Schindelin wrote: > >>> On Thu, 24 May 2007, Sven Verdoolaege wrote: > > >>>> OK... so what should git-update-server-info put in this file for submodules? > >>>> Or, equivalently, what should be the output of ls-remote? > >>>> > >>>> Right now its a list of pairs of revs(sha1) and refs. > >>>> For submodules we want a connection between a submodule name > >>>> and one or more URLs where the submodule can be found. > >>>> How are you going to squeeze that into info/refs without confusing > >>>> older versions of git? > >>> > >>> I wonder if the "ref^{blub}" syntax could be used for that: change "blub" > >>> to the URL, or "sub:URL" or something. > >> > >> Just to be clear, would it look like the following? > >> > >> e8a6e39ecfbd391a54b9c3329fd3c6e33d745abd refs/heads/bernstein > >> c5c64e3fe48302f0c4581985f9c68d615f7bcb4e refs/heads/master > >> 3fa7ded19a8da868d3af7c942f86358e6720f0c7 refs/heads/submodule > >> /home/sverdool/public_html/cloog.git cloog^{URL} > >> http://www.liacs.nl/~sverdool/cloog.git cloog^{URL} > > > > I was more thinking about something like this: > > 3fa7ded19a8da868d3af7c942f86358e6720f0c7 refs/heads/submodule^{URL:/home/sverdool/public_html/cloog.git} > > > > But then, I haven't really thought about it deeply. > > I was thinking about the following: > > ref: refs/heads/master HEAD > e8a6e39ecfbd391a54b9c3329fd3c6e33d745abd refs/heads/bernstein > c5c64e3fe48302f0c4581985f9c68d615f7bcb4e refs/heads/master > 3fa7ded19a8da868d3af7c942f86358e6720f0c7 refs/heads/master:submodule/path > URL: /home/sverdool/public_html/cloog.git refs/heads/master:submodule/path^{URL} > URL: http://www.liacs.nl/~sverdool/cloog.git refs/heads/master:submodule/path^{URL} > > By the way, it would be nice if git-show-refs --deferefence used TAB > between sha1 and ref name, like in git-ls-remote / git-peek-remote, > otherwise I think git-show-refs output parsers would fail on [proposed] > "current branch" extension. Well, I always hinted at it, and now officially retract my proposal. IMHO .gitmodules is a much better place for that. It _belongs_ in the repository, not just the config. Ciao, Dscho