git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: submodule usage with links

From
Nigel Magnay <nigel.magnay@gmail.com>
Date
Mar 17, 2008, 15:19 UTC
Message-ID
<320075ff0803170819p711e512cl30127a44f0543138@mail.gmail.com>
In-Reply-To
<320075ff0803170652i75041745v7825915f153fa577@mail.gmail.com>

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?
>
Previous: Nigel Magnay
Message 2 of 2 in “submodule usage with links”
  1. Nigel MagnayMar 17, 2008
  2. Nigel MagnayMar 17, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.