2 ms·
> Checking out a Git repository involves downloading not only the entire current revision, but the entire history. So this creates pressure against putting two
by js2 16y ago
> Checking out a Git repository involves downloading not only the entire current revision, but the entire history. So this creates pressure against putting two partially-related projects together in the same repository, especially if one of the projects is huge.
See git clone's "--depth" option. There are limitations to what you can do with a shallow clone, but you do not, in fact, need to pull down an entire history.
Regarding the rest of TFA, the author should look at git submodules, as already mentioned here in the comments. However, submodules should not be used without understanding their implications and limitations (it is worth searching the Git mailing list).
There are at least three alternatives to submodules I'm aware of:
1. git-subtree - http://github.com/apenwarr/git-subtree http://github.com/apenwarr/git-subtree
2. gclient - http://www.chromium.org/developers/how-tos/install-gclient http://www.chromium.org/developers/how-tos/install-gclient
This is part of so-called "depot_tools" used by Chromium and ChromiumOS, and can tie together subversion and git repos.
3. repo - http://source.android.com/source/git-repo.html http://source.android.com/source/git-repo.html
This is used by the Android project.
The latter two are not really designed to be used outside of the projects for which they were created, but both are Python code so they can probably be adapted pretty easily.