{"thread":{"id":"12723","subject":"submodule usage with links","startedAt":"2008-03-17T13:52:52Z","lastAt":"2008-03-17T15:19:40Z","messageCount":2,"participants":["Nigel Magnay"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"72287","messageId":"320075ff0803170652i75041745v7825915f153fa577@mail.gmail.com","threadId":"12723","inReplyTo":null,"subject":"submodule usage with links","fromName":"Nigel Magnay","fromEmail":"nigel.magnay@gmail.com","sentAt":"2008-03-17T13:52:52Z","receivedAt":"2008-03-17T13:52:52Z","isPatch":false,"sender":{"key":"nigel.magnay@gmail.com","avatar":"https://gravatar.com/avatar/d85cf38287bef3a8e4fa02358d2756d7589f8676c5eeb881ce2f6d731e4526c3?d=mp&s=160"},"body":"Hi there\n\nWe use a lot of repo links that I'd like to use submodule support for.\n\nInstead of doing\ngit submodule add ~/module/a\nor even\ngit submodule add git://myhost/module/a\n\nI'd like to share a, and do something like\n\n<<add value to .gitmodules>>\nln -s a ../modules/a\n?? do something to add 'A' to the index as a 'subproject commit'\nrather than a symlink ??\n\nI'm stuck on the last bit - or is this not going to work?\n"},{"id":"72294","messageId":"320075ff0803170819p711e512cl30127a44f0543138@mail.gmail.com","threadId":"12723","inReplyTo":"320075ff0803170652i75041745v7825915f153fa577@mail.gmail.com","subject":"Re: submodule usage with links","fromName":"Nigel Magnay","fromEmail":"nigel.magnay@gmail.com","sentAt":"2008-03-17T15:19:40Z","receivedAt":"2008-03-17T15:19:40Z","isPatch":false,"sender":{"key":"nigel.magnay@gmail.com","avatar":"https://gravatar.com/avatar/d85cf38287bef3a8e4fa02358d2756d7589f8676c5eeb881ce2f6d731e4526c3?d=mp&s=160"},"body":"Ok - turns out I was being optimistic, git understands symlinks and\nnotices a typechange.\n\nIs there any support for doing this kind of thing? I have lots of\nsuperprojects that all use the same\nmodule - I'd like to not have to have them duplicated many times over\n(It's ok that I'll have to reset the module\nrepository when changing between superproject)..\n\n\nOn Mon, Mar 17, 2008 at 1:52 PM, Nigel Magnay <nigel.magnay@gmail.com> wrote:\n> Hi there\n>\n>  We use a lot of repo links that I'd like to use submodule support for.\n>\n>  Instead of doing\n>  git submodule add ~/module/a\n>  or even\n>  git submodule add git://myhost/module/a\n>\n>  I'd like to share a, and do something like\n>\n>  <<add value to .gitmodules>>\n>  ln -s a ../modules/a\n>  ?? do something to add 'A' to the index as a 'subproject commit'\n>  rather than a symlink ??\n>\n>  I'm stuck on the last bit - or is this not going to work?\n>\n"}]}