threads / discuss / 12723

submodule usage with links

Subject: submodule usage with links

## tl;dr

2 messages between Mar 17, 2008 and Mar 17, 2008.

replies: 1people: 1as markdown or json

Nigel Magnay· Mar 17, 2008, 13:52 UTC · lore
Hi there
We use a lot of repo links that I'd like to use submodule support for.

Instead of doing git submodule add ~/module/a or even git submodule add git://myhost/module/a

I'd like to share a, and do something like

<<add value to .gitmodules>> ln -s a ../modules/a ?? do something to add 'A' to the index as a 'subproject commit' rather than a symlink ??

I'm stuck on the last bit - or is this not going to work?
Nigel Magnay· Mar 17, 2008, 15:19 UTC · re: Nigel Magnay · lore

Re: submodule usage with links

Ok - turns out I was being optimistic, git understands symlinks and notices a typechange.

Is there any support for doing this kind of thing? I have lots of superprojects that all use the same module - I'd like to not have to have them duplicated many times over (It's ok that I'll have to reset the module repository when changing between superproject)..

On Mon, Mar 17, 2008 at 1:52 PM, Nigel Magnay <nigel.magnay@gmail.com> wrote:
Show 18 quoted lines
> Hi there
>
>  We use a lot of repo links that I'd like to use submodule support for.
>
>  Instead of doing
>  git submodule add ~/module/a
>  or even
>  git submodule add git://myhost/module/a
>
>  I'd like to share a, and do something like
>
>  <<add value to .gitmodules>>
>  ln -s a ../modules/a
>  ?? do something to add 'A' to the index as a 'subproject commit'
>  rather than a symlink ??
>
>  I'm stuck on the last bit - or is this not going to work?
>

← back to recent threads