git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to manage multiple repos using submodules?
@ 2011-04-16 16:45 Andrew Wong
  2011-04-16 18:20 ` Jonathan Nieder
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Wong @ 2011-04-16 16:45 UTC (permalink / raw)
  To: git

It seems like submodule isn't meant for this, but many people seems to 
use submodule to link many smaller repos together. With this setup, I 
imagine whenever someone pushed a small repo, they're /supposed/ to push 
the big repo as well. This way, if I simply update the big repo and do a 
"git status", git will tell me that which of the smaller repos are out 
of date. However, this is only reliable if everyone remembers to push 
the big repo. If someone pushed a smaller repo, but forgot to push the 
big repo, then I won't be aware that some of the smaller repos are 
out-of-date until I push.

I suppose one way is to do a check/auto-update with pre/post commit 
script to enforce that the big repo is always up-to-date. Another way is 
to use the "submodule foreach" to do a fetch and status on smaller ones, 
but this doesn't seem very elegant.

So, I'm wondering how do people who use submodules this way manage all 
their repos? Or how to (reliably) get a good sense of the state of the 
small repos? Or maybe I shouldn't be using submodules this way at all?

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

end of thread, other threads:[~2011-04-19 13:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-16 16:45 How to manage multiple repos using submodules? Andrew Wong
2011-04-16 18:20 ` Jonathan Nieder
2011-04-17  6:48   ` Jonathan Nieder
2011-04-17 18:42     ` Andrew Wong
2011-04-19 13:18   ` Phil Hord

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).