On 18 June 2015 at 12:30, Lars Schneider <larsxschnei...@gmail.com> wrote:
> Hi,
>
> AFAIK Git has two ways to clone a repository with respect to submodules:
>
> (1) Plain clone of just the repository itself:
>
> git clone git://github.com/foo/bar.git
>
> (2) Recursive clone of the repository including all its submodules:
>
> git clone --recursive git://github.com/foo/bar.git
>
> I am working on a big cross platform project and on certain platforms I
> don't need certain submodules. AFAIK there is no way to selectively clone
> only a subset of the submodules with the standard command line interface. I
> wonder if something like an exclude pattern for submodules would be of
> general interest. I imagine a call like this after a plain "clone"
> operation:
>
> git submodule update --init --recursive --exclude 3rdParty/Windows/*
>
> or even:
>
> git clone --recursive --exclude 3rdParty/Windows/*
> git://github.com/foo/bar.git
>
>
> Please let me know what you think.

Personally I think I'd rather use a multi-repo-mgmt tool (like
git-repo or mu-repo) instead of relying on submodules.  Then it's easy
to have different configurations for different platforms.

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to