diff options
Diffstat (limited to 'connected.h')
-rw-r--r-- | connected.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/connected.h b/connected.h index eba5c26..16b2c84 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 @@ -48,13 +48,11 @@ struct check_connected_options { unsigned is_deepening_fetch : 1; /* - * If non-zero, only check that the top-level objects referenced by the - * wanted refs (passed in as cb_data) are promisor objects. This is - * useful for partial clones, where enumerating and excluding all - * promisor objects is very slow and the commit-walk itself becomes a - * no-op. + * If not NULL, use `--exclude-hidden=$section` to exclude all refs + * hidden via the `$section.hideRefs` config from the set of + * already-reachable refs. */ - unsigned check_refs_are_promisor_objects_only : 1; + const char *exclude_hidden_refs_section; }; #define CHECK_CONNECTED_INIT { 0 } |