ci: run `hdr-check` as part of the `Static Analysis` job
[git/git.git] / promisor-remote.h
CommitLineData
48de3158
CC
1#ifndef PROMISOR_REMOTE_H
2#define PROMISOR_REMOTE_H
3
b06fdead
DL
4#include "repository.h"
5
9e27beaa
CC
6struct object_id;
7
48de3158
CC
8/*
9 * Promisor remote linked list
fa3d1b63
CC
10 *
11 * Information in its fields come from remote.XXX config entries or
12 * from extensions.partialclone or core.partialclonefilter.
48de3158
CC
13 */
14struct promisor_remote {
15 struct promisor_remote *next;
fa3d1b63 16 const char *partial_clone_filter;
48de3158
CC
17 const char name[FLEX_ARRAY];
18};
19
9cfebc1f 20extern void promisor_remote_reinit(void);
48de3158
CC
21extern struct promisor_remote *promisor_remote_find(const char *remote_name);
22extern int has_promisor_remote(void);
9e27beaa
CC
23extern int promisor_remote_get_direct(struct repository *repo,
24 const struct object_id *oids,
25 int oid_nr);
48de3158 26
60b7a92d
CC
27/*
28 * This should be used only once from setup.c to set the value we got
29 * from the extensions.partialclone config option.
30 */
31extern void set_repository_format_partial_clone(char *partial_clone);
32
48de3158 33#endif /* PROMISOR_REMOTE_H */