git submodule update: have a dedicated helper for cloning
authorStefan Beller <sbeller@google.com>
Tue, 1 Mar 2016 02:07:17 +0000 (18:07 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Mar 2016 19:57:20 +0000 (11:57 -0800)
commit48308681b072a1d32e1361c255347324a8ad151e
tree7e15dfccd3e7e4fd58cefd907ce3c043f77a01cf
parentaa71049485c7b789fb9121c7fc2bece431bc589b
git submodule update: have a dedicated helper for cloning

This introduces a new helper function in git submodule--helper
which takes care of cloning all submodules, which we want to
parallelize eventually.

Some tests (such as empty URL, update_mode=none) are required in the
helper to make the decision for cloning. These checks have been
moved into the C function as well (no need to repeat them in the
shell script).

Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
git-submodule.sh