Re: [PATCH] Let .git/config specify the url for submodules
From: Lars Hjemli <hidden>
Date: 2016-06-15 22:43:13
On 6/1/07, Sven Verdoolaege [off-list ref] wrote:
On Fri, Jun 01, 2007 at 11:25:42AM +0200, Lars Hjemli wrote:quoted
On 6/1/07, Sven Verdoolaege [off-list ref] wrote:quoted
Could you please document the proposed .gitmodules first?The man-page for git-submodule found in 'next' mentions how it uses .gitmodules, but there isn't (yet) a separate man-page for .gitmodules(5).That's what I'd like to see first. .gitmodules(5) will hopefully not change in an incompatible way after it is accepted, while there is no such constraint for git-submodule.
True
quoted
[path '$path'] submodule=modulename url=/some/urlWouldn'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. Also, the url in .gitmodules will only function as the initially suggested url stored in the 'superprojects' .git/config) -- larsh