From: Sven Verdoolaege Date: Fri, 01 Jun 2007 14:51:04 GMT Subject: Re: [PATCH] Let .git/config specify the url for submodules Message-ID: <20070601145104.GY955MdfPADPa@greensroom.kotnet.org> In-Reply-To: <8c5c35580706010745l76fc5410l21f2e3f385693ad9@mail.gmail.com> 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. skimo