fetch: Extend --jobs to multiple remotes
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest5 patches 8 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | fetch: Rename max_children to max_children_for_submodulesbuiltin/ | +6 | 0 replies | |
| 2/5 | fetch: Add the "--fetch-jobs" optionDocumentation/ builtin/ | +126 | 1 reply | |
| 3/5 | fetch: Add the fetch.jobs config keybuiltin/ | +7 | 0 replies | |
| 4/5 | fetch: Add the --submodule-fetch-jobs optionDocumentation/ builtin/ | +3 | 0 replies | |
| 5/5 | fetch: Make --jobs control submodules and remotesDocumentation/ builtin/ | +22 | 7 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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.