Re: [RFC] Fourth round of support for cloning submodules
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 24, 2007, 11:02 UTC
- Message-ID
- <Pine.LNX.4.64.0705241201270.4648@racer.site>
- In-Reply-To
- <20070524105112.GI942MdfPADPa@greensroom.kotnet.org>
Hi,
On Thu, 24 May 2007, Sven Verdoolaege wrote:
Show 12 quoted lines
> On Thu, May 24, 2007 at 10:41:30AM +0100, Johannes Schindelin wrote: > > On Thu, 24 May 2007, Sven Verdoolaege wrote: > > > You mean like a tag "submodules" that points to a text file > > > describing the submodules? > > > That's a bit of a pain to set up since you would want that > > > to be independent of your project. > > > > I could imagine this to be another extension of ls-remote. > > You mean extending upload-pack ? Junio mentioned this possibility as well. > This only solves the git:// and ssh:// case though. > What to do with the other protocols?
As we do for the refs: put it into .git/info/refs. This file is already meant to "cache" the output of ls-remote for dumb protocols.
> Also, I don't really understand why it would be less of a hack > to add it to ls-remote than to add it to git-config. > The latter seems more natural to me.
No, not at all. git-config is about the local data. It is _meant_ to be private. Things you can receive by ls-remote are _meant_ to be public.
Ciao, Dscho