Git development
 help / color / mirror / Atom feed
* Partial checkouts / submodules
@ 2007-11-20 15:59 Finn Arne Gangstad
  2007-11-20 17:33 ` Sven Verdoolaege
  2007-11-20 18:03 ` Daniel Barkalow
  0 siblings, 2 replies; 13+ messages in thread
From: Finn Arne Gangstad @ 2007-11-20 15:59 UTC (permalink / raw)
  To: git

My use case it this: We have some huge projects (let's call them
supermodules) that are the only products we really release. Any change
going into any of the submodules go in solely to modify the
superproject, the submodules are not released on their own.

We cannot keep the supermodule with all its submodules in one git
repository for two reasons: Size & sharing. A 6GB+ repository is too
big to handle gracefully, and there are multiple superprojects sharing
some of the submodules. Our supermodules typically contains 50-250
submodules. Usually it is sufficient to look at just a few of these
submodules at the same time.

I looked into the current git submodules to see if they support what I
think we need, but it seems like they do not really cut it (If I'm
wrong about this, please educate me).

What I want is this: 

Somewhere the following modules all exist:

supermodule/
   submodule1
   submodule2
   submodule3
    ...
   submodule200

You pull the supermodule, and initialize random collection of
submodules, e.g. locally you have:

supermodule/
   submodule13
   submodule71
   submodule102

Now I want this to behave as if it was a partial checkout of
"supermodule" - i.e. I want _all_ operations in any of the submodules
to act as if they happened in all the submodules (as if supermodule
was a single repository containing all the submodules directly).

If I do a change in submodule13, another change in submodule71 and yet
another change in submodule102, I want to be able to commit them all
as ONE commit (obviously it will be 4 commits, 1 in each submodule and
one in the supermodule, but anyone looking at this in the context of
this supermodule should see it as one commit).

If I pull supermodule, I get updates to supermodule, submodule13,
submodule71 and submodule102, but nothing else.

If I make a branch on submodule71, the branch is made in all submodules &
the supermodule.

With this setup it should be possible to handle supermodule as a
normal module with branches for each feature/topic/bugfix, and those
features being merged into other branches in a reasonable way. Does
something like this look doable?

- Finn Arne

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

end of thread, other threads:[~2007-11-21  0:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-20 15:59 Partial checkouts / submodules Finn Arne Gangstad
2007-11-20 17:33 ` Sven Verdoolaege
2007-11-20 18:19   ` Finn Arne Gangstad
2007-11-20 18:42     ` Sven Verdoolaege
2007-11-20 18:59     ` Daniel Barkalow
2007-11-20 19:22       ` Finn Arne Gangstad
2007-11-20 20:18         ` Daniel Barkalow
2007-11-21  0:04     ` Jakub Narebski
2007-11-20 18:03 ` Daniel Barkalow
2007-11-20 18:26   ` Steven Grimm
2007-11-20 18:36     ` Daniel Barkalow
2007-11-20 18:55     ` Sergei Organov
2007-11-20 19:15       ` Daniel Barkalow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox