git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Location-agnostic submodules
@ 2012-04-27 14:37 Pierre Thierry
  2012-04-30 20:39 ` Phil Hord
  0 siblings, 1 reply; 8+ messages in thread
From: Pierre Thierry @ 2012-04-27 14:37 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1163 bytes --]

I just discovered the workings of the submodule command, and as I have
grown to like the fact that a repository is not unique with Git, and
specifically that it has no unique or central location, I'm bothered
by how submodule works.

Would there be any major issue in having (1) submodule to be able to
clone the submodules from the super repository when they are available
there and (2) having zero, one or many addresses for each submodule,
used as hints (obviously not used when (1) is satisfied)?

When the repository is not bare, the submodules would be found at
their place in the tree, nothing difficult here. When the repository
is bare, there could be a tree with the bare repositories of the
submodules.

This could be done by a new subcommand, that would take a remote as an
optional argument, its default being origin, as usual:

$ git submodule clone origin


As I see it, adding this 'clone' subcommand for the case where the
repository is not bare couldn't add any compatibility issue, so if I'm
right on this point, I'd like to try and implement this soon.

Curiously,
Pierre
-- 
pierre@nothos.net
OpenPGP 0xD9D50D8A

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-02 16:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-27 14:37 Location-agnostic submodules Pierre Thierry
2012-04-30 20:39 ` Phil Hord
2012-04-30 22:02   ` Pierre Thierry
2012-05-01 15:16     ` Phil Hord
2012-05-01 17:19       ` Philip Oakley
2012-05-01 17:57         ` Junio C Hamano
2012-05-01 19:58           ` Philip Oakley
2012-05-02 16:55           ` Heiko Voigt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).