diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-09-20 15:20:39 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-09-20 15:20:39 -0700 |
| commit | deec8aa2d05aba0a2ba495f9d41ab4e2805c8b9e (patch) | |
| tree | d263c17f9a7f76297adbec472ade5e3923f0e673 /connected.h | |
| parent | 4c719308ce59dc70e606f910f40801f2c6051b24 (diff) | |
| parent | caff8b73402d4b5edb2c6c755506c5a90351b69a (diff) | |
| download | git-deec8aa2d05aba0a2ba495f9d41ab4e2805c8b9e.tar.xz | |
Merge branch 'ps/fetch-optim'
Optimize code that handles large number of refs in the "git fetch"
code path.
* ps/fetch-optim:
fetch: avoid second connectivity check if we already have all objects
fetch: merge fetching and consuming refs
fetch: refactor fetch refs to be more extendable
fetch-pack: optimize loading of refs via commit graph
connected: refactor iterator to return next object ID directly
fetch: avoid unpacking headers in object existence check
fetch: speed up lookup of want refs via commit-graph
Diffstat (limited to 'connected.h')
| -rw-r--r-- | connected.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connected.h b/connected.h index 8d5a6b3ad6..6e59c92aa3 100644 --- a/connected.h +++ b/connected.h @@ -9,7 +9,7 @@ struct transport; * When called after returning the name for the last object, return -1 * to signal EOF, otherwise return 0. */ -typedef int (*oid_iterate_fn)(void *, struct object_id *oid); +typedef const struct object_id *(*oid_iterate_fn)(void *); /* * Named-arguments struct for check_connected. All arguments are |
