@@ -160,6 +160,7 @@ ifndef::git-pull[]
-j::
--jobs=<n>::
+--submodule-fetch-jobs=<n>::
Number of parallel children to be used for fetching submodules.
Each will fetch from different submodules, such that fetching many
submodules will be faster. By default submodules will be fetched
@@ -146,6 +146,8 @@ static struct option builtin_fetch_options[] = {
N_("number of submodules fetched in parallel")),
OPT_INTEGER(0, "fetch-jobs", &max_children_for_fetch,
N_("number of remotes fetched in parallel")),
+ OPT_INTEGER(0, "submodule-fetch-jobs", &max_children_for_submodules,
+ N_("number of submodules fetched in parallel")),
OPT_BOOL('p', "prune", &prune,
N_("prune remote-tracking branches no longer on remote")),
OPT_BOOL('P', "prune-tags", &prune_tags,
This is exactly the same as --jobs, but the more explicit name will allow us to later change the behavior of --jobs to control both the number of jobs for remotes as well as submodules. Signed-off-by: Palmer Dabbelt <palmer@sifive.com> --- Documentation/fetch-options.txt | 1 + builtin/fetch.c | 2 ++ 2 files changed, 3 insertions(+)