From: Lars Hjemli Date: Fri, 01 Jun 2007 15:56:34 GMT Subject: Re: [PATCH] Let .git/config specify the url for submodules Message-ID: <8c5c35580706010856s390b1157p3ea0d28cb2074cae@mail.gmail.com> In-Reply-To: <20070601145104.GY955MdfPADPa@greensroom.kotnet.org> On 6/1/07, Sven Verdoolaege wrote: > On Fri, Jun 01, 2007 at 04:45:06PM +0200, Lars Hjemli wrote: > > On 6/1/07, Sven Verdoolaege 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