Re: [PATCH] Let .git/config specify the url for submodules
- From
- Lars Hjemli <hjemli@gmail.com>
- Date
- Jun 2, 2007, 09:53 UTC
- Message-ID
- <8c5c35580706020253j4e24785cyce712460d8d1a1b8@mail.gmail.com>
- In-Reply-To
- <7vejkuyaxq.fsf@assigned-by-dhcp.cox.net>
On 6/2/07, Junio C Hamano <junkio@cox.net> wrote:
Show 9 quoted lines
> "Lars Hjemli" <hjemli@gmail.com> writes: > > > But why would we want to design .gitmodules in a way that makes it > > hard to do the mapping from path to url? > > Perhaps because "path" is not the "identity" of the subproject, but > the (logical) subproject name is? > >
Ok.
So I'll make 'git-submodule' expect the .gitmodules layout to be like this:
[submodule 'xyz'] url=git://example.com/xyz.git path=xyz1 path=xyz2
And submodule.$name.path should be optional: if no submodule.*.path entry exists for a given $path, submodule $name == $path.
Ok?
-- larsh