]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'js/fetch-jobs'
authorJunio C Hamano <gitster@pobox.com>
Tue, 15 Oct 2019 04:48:00 +0000 (13:48 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Oct 2019 04:48:00 +0000 (13:48 +0900)
"git fetch --jobs=<n>" allowed <n> parallel jobs when fetching
submodules, but this did not apply to "git fetch --multiple" that
fetches from multiple remote repositories.  It now does.

* js/fetch-jobs:
  fetch: let --jobs=<n> parallelize --multiple, too

1  2 
Documentation/config/fetch.txt
Documentation/fetch-options.txt
builtin/fetch.c

index e8cb20547c5fbbb524932fd4efe09793fd544837,b20063406516ff43bcf26267401a6582177c3f2f..f11940280fe303d53794b1f6de50c63e3a2829be
@@@ -70,12 -69,12 +70,22 @@@ fetch.showForcedUpdates:
        linkgit:git-fetch[1] and linkgit:git-pull[1] commands.
        Defaults to true.
  
+ fetch.parallel::
+       Specifies the maximal number of fetch operations to be run in parallel
+       at a time (submodules, or remotes when the `--multiple` option of
+       linkgit:git-fetch[1] is in effect).
+ +
+ A value of 0 will give some reasonable default. If unset, it defaults to 1.
+ +
+ For submodules, this setting can be overridden using the `submodule.fetchJobs`
+ config setting.
++
 +fetch.writeCommitGraph::
 +      Set to true to write a commit-graph after every `git fetch` command
 +      that downloads a pack-file from a remote. Using the `--split` option,
 +      most executions will create a very small commit-graph file on top of
 +      the existing commit-graph file(s). Occasionally, these files will
 +      merge and the write may take longer. Having an updated commit-graph
 +      file helps performance of many Git commands, including `git merge-base`,
 +      `git push -f`, and `git log --graph`. Defaults to false, unless
 +      `feature.experimental` is true.
Simple merge
diff --cc builtin/fetch.c
Simple merge