Re: [RFC] Fourth round of support for cloning submodules
- From
- Lars Hjemli <hjemli@gmail.com>
- Date
- May 24, 2007, 12:41 UTC
- Message-ID
- <8c5c35580705240541j7f632fc4lbd308c9386c2bde6@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0705241315290.4648@racer.site>
On 5/24/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 30 quoted lines
> Hi,
>
> 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 think the whole point of the 'remote config' stuff is to get an unversioned/out-of-tree .gitmodules file, right?
If so, one could put this file into the object db and refer to it with something like 'refs/tags/subproject-config' or even 'refs/misc/subproject-config'. Both of these refs will be found by ls-remote and point to the object containing the suggested subproject configuration.
I actually do something similar with the release tarballs for cgit: try git ls-remote git://hjemli.net/pub/git/cgit to see the references to the tarballs which are displayed on the cgit summary page.
But then again, I might have completely misunderstood the problem...
-- larsh