question (possibly) on git subtree/submodules
- From
- Maurizio Vitale <mav@leonardo.pit.corp.google.com>
- Date
- Jul 23, 2010, 14:00 UTC
- Message-ID
- <xotjlj92i9gr.fsf@leonardo.pit.corp.google.com>
I'm new to git and have read the recent thread on subtree support.
I'm not sure they (or git submodules) offer what I'm looking for.
Here's the scenario:
- I have a large monolithic code base, all in my repository (e.g.
I don't need to link in external repositories, which is what I
understand submodules offer
- I'd like to be able to clone only a small fraction of the
repository (say an arbitrary directory or even a single file)
in order to make small changes
- these directories are not known when the full repository is set
up.
- commits to the part I've checked out should show in the history
of any clone that includes the part, up to the full repository
- ideally, I should be able to incrementally clone portions (e.g.
I've checked out path/dir_A and realize I need to modify
path/dir_B as well).
these additional clones should be in whatever branch I switched
to after the initial checkouts.Assuming the above makes any sense (in general or in git), is there anything in git that would help me doing what I'm looking for? Thanks,
Maurizio