[Kde-scm-interest] git submodule

Yury G. Kudryashov urkud at ya.ru
Thu Sep 23 21:32:12 CEST 2010


Ian Monroe wrote:

> 2010/9/23 Jason A. Donenfeld
> <Jason at zx2c4.com>:
>> Hello,
>> Regarding the issue of managing multiple little repositories when working
>> on an entire module, if we decide to go with the (preferred) split
>> approach, has anyone considered the potential of git-submodule? I've used
>> it for exactly this purpose and have had a lot of success with it.
>> http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html
>> Jason
> 
> 
> I really doubt you used it for the same purpose. Just read the
> description on the link you gave. It is really only meant for
> read-only dependencies.
No, with git-submodule you have a real git checkout of another project in a 
subdirectory. It is just a "convenient" way to say which project should be 
checked out into given directory (like svn:external but less convenient). 
The main disadvantage of git-submodules is that git-clone is (yet?) unable 
to auto-clone all submodules (though it should not be hard to write a script 
that will do it).
> 
> Ian




More information about the Kde-scm-interest mailing list