submodule update: expose parallelism to the user
commit2335b870fa7942d9ca9e73e96e35171fda741376
authorStefan Beller <sbeller@google.com>
Tue, 1 Mar 2016 02:07:19 +0000 (29 18:07 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Mar 2016 19:57:20 +0000 (1 11:57 -0800)
treef76c7f7b8fcd2d4bcac7ec1f57f53eb079c2b1c0
parentcdc04b65b4bc8094e082ac65a7dce75a7a990163
submodule update: expose parallelism to the user

Expose possible parallelism either via the "--jobs" CLI parameter or
the "submodule.fetchJobs" setting.

By having the variable initialized to -1, we make sure 0 can be passed
into the parallel processing machine, which will then pick as many parallel
workers as there are CPUs.

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