I see your point. However, submodules are pretty good supported by the Git 
CLI as well as GUIs. Therefore I prefer them over a "custom" solution.

PS: Thanks for https://fabioz.github.io/mu-repo/ ... I didn't know this one.

- Lars

On Thursday, June 18, 2015 at 1:02:28 PM UTC+2, Magnus Therning wrote:
>
> On 18 June 2015 at 12:30, Lars Schneider <larsxsc...@gmail.com 
> <javascript:>> 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 <javascript:>   jabber: mag...@therning.org 
> <javascript:> 
> twitter: magthe               http://therning.org/magnus 
>

On Thursday, June 18, 2015 at 1:02:28 PM UTC+2, Magnus Therning wrote:
>
> On 18 June 2015 at 12:30, Lars Schneider <larsxsc...@gmail.com 
> <javascript:>> 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 <javascript:>   jabber: mag...@therning.org 
> <javascript:> 
> twitter: magthe               http://therning.org/magnus 
>

On Thursday, June 18, 2015 at 1:02:28 PM UTC+2, Magnus Therning wrote:
>
> On 18 June 2015 at 12:30, Lars Schneider <larsxsc...@gmail.com 
> <javascript:>> 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 <javascript:>   jabber: mag...@therning.org 
> <javascript:> 
> twitter: magthe               http://therning.org/magnus 
>

On Thursday, June 18, 2015 at 1:02:28 PM UTC+2, Magnus Therning wrote:
>
> On 18 June 2015 at 12:30, Lars Schneider <larsxsc...@gmail.com 
> <javascript:>> 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 <javascript:>   jabber: mag...@therning.org 
> <javascript:> 
> 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