Merge branch 'sg/t9300-robustify'
[git/raj.git] / promisor-remote.h
blob737bac3a330e22fe11058d5667cdb3f199c0484a
1 #ifndef PROMISOR_REMOTE_H
2 #define PROMISOR_REMOTE_H
4 #include "repository.h"
6 struct object_id;
8 /*
9 * Promisor remote linked list
11 * Information in its fields come from remote.XXX config entries or
12 * from extensions.partialclone or core.partialclonefilter.
14 struct promisor_remote {
15 struct promisor_remote *next;
16 const char *partial_clone_filter;
17 const char name[FLEX_ARRAY];
20 void promisor_remote_reinit(void);
21 struct promisor_remote *promisor_remote_find(const char *remote_name);
22 int has_promisor_remote(void);
23 int promisor_remote_get_direct(struct repository *repo,
24 const struct object_id *oids,
25 int oid_nr);
28 * This should be used only once from setup.c to set the value we got
29 * from the extensions.partialclone config option.
31 void set_repository_format_partial_clone(char *partial_clone);
33 #endif /* PROMISOR_REMOTE_H */