Suppose I am on commit a which has submodule s1
and somebody added submodule s2 in commit a+1, now I don't want to move to a+1 but fetch(just download) submodule s2.
Is this possible?
my git version is 2.1.4 I can get 2.10.1.windows.1 if required to update
Edit: simple script I tried, it has some problems - .git folder is inside the new cloned submodule rather than in super rep's .git/modules folder - working directory is polluted with the new submodule :|
git diff HEAD origin/master .gitmodules 2>&1 | perl -e '
while(<>)
{
if(/^\+\s+path = (.+)/)
{
my $path = $1;
my $line = <>;
if($line=~/^\+\s+url = (.+)/)
{
my $url = $1;
print "$path -> $url\n";
`git clone "$url" "$path"`
}
}
}'