diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-19 20:30:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-19 20:30:21 +0200 |
commit | 68e65ded5b790bfd8a1072a7f551a8f283f62f29 (patch) | |
tree | cb8013cd29b7766aa63ba5812fd172aefcdbc0d6 /object-store.h | |
parent | Merge branch 'nd/tree-walk-with-repo' (diff) | |
parent | check_everything_connected: assume alternate ref tips are valid (diff) | |
download | git-68e65ded5b790bfd8a1072a7f551a8f283f62f29.tar.xz git-68e65ded5b790bfd8a1072a7f551a8f283f62f29.zip |
Merge branch 'jk/check-connected-with-alternates'
The tips of refs from the alternate object store can be used as
starting point for reachability computation now.
* jk/check-connected-with-alternates:
check_everything_connected: assume alternate ref tips are valid
object-store.h: move for_each_alternate_ref() from transport.h
Diffstat (limited to 'object-store.h')
-rw-r--r-- | object-store.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/object-store.h b/object-store.h index 49f56ab8d9..7f7b3cdd80 100644 --- a/object-store.h +++ b/object-store.h @@ -33,6 +33,8 @@ void prepare_alt_odb(struct repository *r); char *compute_alternate_path(const char *path, struct strbuf *err); typedef int alt_odb_fn(struct object_directory *, void *); int foreach_alt_odb(alt_odb_fn, void*); +typedef void alternate_ref_fn(const struct object_id *oid, void *); +void for_each_alternate_ref(alternate_ref_fn, void *); /* * Add the directory to the on-disk alternates file; the new entry will also |