[Kde-scm-interest] Re: git submodule

Stefan Valouch stefan at valouch.de
Tue Sep 28 02:23:32 CEST 2010


On 09/23/10 20:29, Jason A. Donenfeld wrote:
> 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
>
>
>
> _______________________________________________
> Kde-scm-interest mailing list
> Kde-scm-interest at kde.org
> https://mail.kde.org/mailman/listinfo/kde-scm-interest

Hi,

one of the developers of the Xonotic ego shooter developed a shellscript 
"all" that is used to manage the individual repositories of which the 
game consists. (Script: 
http://git.xonotic.org/?p=xonotic/xonotic.git;a=blob;f=all;h=5db184d226e4a472625ca04f04a2fb2df53ec780;hb=HEAD 
)
The main repository xonotic.git (http://git.xonotic.org/) contains that 
script and an "./all update" pulls in the other repositories or keeps 
them in sync with the server. It also acts as helper to compile and run 
the game. In line 111, it defines a structure (a string) that contains 
the repository names, branches and locations. Main repo clone url is 
git://git.xonotic.org/xonotic/xonotic.git , it's relatively small 
(180MB), but "all" pulls in more than a gig of extra data.
To me, it looks like an ideal solution, but as a shellscript, it 
requires a shell - obviously, which may be not available on windows 
unless the developer installs cygwin or something similar.

regards,
Stefan


More information about the Kde-scm-interest mailing list