Skip to content

fetch: Extend --jobs to multiple remotes

Palmer Dabbelt git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 8 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5fetch: Rename max_children to max_children_for_submodulesbuiltin/fetch.c+6 -50 replies
2/5fetch: Add the "--fetch-jobs" optionDocumentation/fetch-options.txt builtin/fetch.c+126 -201 reply
3/5fetch: Add the fetch.jobs config keybuiltin/fetch.c+7 -00 replies
4/5fetch: Add the --submodule-fetch-jobs optionDocumentation/fetch-options.txt builtin/fetch.c+3 -00 replies
5/5fetch: Make --jobs control submodules and remotesDocumentation/fetch-options.txt builtin/fetch.c+22 -37 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] fetch: Extend --jobs to multiple remotes

It seems like the feedback for v1 was fairly positive, so I managed to find some time to go ahead finish it. The result is a much cleaner patch set. I think this could be merged in its current state, but there are a few outstanding concerns I have:

* fetch.jobs isn't documented because I couldn't find any documentation for submodule.fetchjobs so I didn't know where to start writing.
* I took the complicated approach and added --submodule-fetch-jobs and --fetch-jobs before converting --jobs over to set both. At the time I thought it wouldn't add too much extra complexity. I wasn't looking closely enough and ended up with a custom parsing function which is a bit ugly.

I'm happy to fix either of these, but I wanted to send out the v2 before going any farther because I wasn't sure if --jobs would be converted over right away or if there was going to be a deprecation period. I've written the patch set such that the final patch can easily be dropped to avoid changing existing behavior.

I'm also happy to re-spin this to just make --jobs control remotes and drop the --fetch-jobs and --submodule-fetch-jobs arguments, which would make the patch set somewhat simpler but preclude a deprecation period.

Changes since v1 <[email protected]>:

* fetch_multiple() has been rewritten to use run_processes_parallel_tr2() rather than manage children on its own.
* The --fetch-jobs argument has been added.
* The --jobs arugemnt has been used, instead of the --parallel argument.