Re: [PATCH] Let .git/config specify the url for submodules
On 6/1/07, Sven Verdoolaege <skimo@kotnet.org> wrote:
Show 28 quoted lines
> On Fri, Jun 01, 2007 at 04:45:06PM +0200, Lars Hjemli wrote:
> > On 6/1/07, Sven Verdoolaege <skimo@kotnet.org> wrote:
> > >On Fri, Jun 01, 2007 at 11:25:42AM +0200, Lars Hjemli wrote:
> > >> [path '$path']
> > >> submodule=modulename
> > >> url=/some/url
> > >
> > >Wouldn't it make more sense to have
> > >
> > >[path '$path']
> > > submodule=modulename
> > >
> > >and
> > >
> > >[submodule '$modulename']
> > > url=/some/url
> > >
> > >in case the same module appears in more than one path?
> >
> > Yes, that would be a properly normalized model.
> >
> > Hmm.... Maybe we could allow both variations, with your suggestion
> > overriding mine if both are present? (I think there would be many
> > cases where the extra level of [submodule...] wouldn't be needed.
>
> Hmm.... I was thinking that the extra "path" level could be optional,
> i.e., if there is no path.$path.submodule, then the name of the
> submodule would simply be $path.
Yeah, that should also work out. Time for a quick poll?
--
larsh