mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:39:38 +00:00
Merge pull request #2973 from libgit2/cmn/local-pack-threading
local: create pack with multiple threads
This commit is contained in:
commit
12e1fff79d
@ -15,6 +15,9 @@ v0.22 + 1
|
|||||||
removed. Use `git_repository_set_ident()` and
|
removed. Use `git_repository_set_ident()` and
|
||||||
`git_repository_ident()` to override the signature to be used.
|
`git_repository_ident()` to override the signature to be used.
|
||||||
|
|
||||||
|
* The local transport now auto-scales the number of threads to use
|
||||||
|
when creating the packfile instead of sticking to one.
|
||||||
|
|
||||||
### API additions
|
### API additions
|
||||||
|
|
||||||
* Parsing and retrieving a configuration value as a path is exposed
|
* Parsing and retrieving a configuration value as a path is exposed
|
||||||
|
@ -609,6 +609,9 @@ static int local_download_pack(
|
|||||||
data.progress_payload = progress_payload;
|
data.progress_payload = progress_payload;
|
||||||
data.writepack = writepack;
|
data.writepack = writepack;
|
||||||
|
|
||||||
|
/* autodetect */
|
||||||
|
git_packbuilder_set_threads(pack, 0);
|
||||||
|
|
||||||
if ((error = git_packbuilder_foreach(pack, foreach_cb, &data)) != 0)
|
if ((error = git_packbuilder_foreach(pack, foreach_cb, &data)) != 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user