diff options
author | Stefan Beller <sbeller@google.com> | 2018-03-23 18:21:09 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-26 10:05:55 -0700 |
commit | 13068bf0a04c4c3cfc177f1aabc61037e319d595 (patch) | |
tree | 21c9eb9dec8c6767752c573115ac502f16a3ddf3 /object-store.h | |
parent | sha1_file: allow link_alt_odb_entries to handle arbitrary repositories (diff) | |
download | tgif-13068bf0a04c4c3cfc177f1aabc61037e319d595.tar.xz |
sha1_file: allow prepare_alt_odb to handle arbitrary repositories
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-store.h')
-rw-r--r-- | object-store.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/object-store.h b/object-store.h index 3fc461a463..f54bc0b951 100644 --- a/object-store.h +++ b/object-store.h @@ -24,8 +24,7 @@ struct alternate_object_database { */ char path[FLEX_ARRAY]; }; -#define prepare_alt_odb(r) prepare_alt_odb_##r() -void prepare_alt_odb_the_repository(void); +void prepare_alt_odb(struct repository *r); char *compute_alternate_path(const char *path, struct strbuf *err); typedef int alt_odb_fn(struct alternate_object_database *, void *); int foreach_alt_odb(alt_odb_fn, void*); |