Use promisor_remote_get_direct() and has_promisor_remote()
[git/git.git] / promisor-remote.h
CommitLineData
48de3158
CC
1#ifndef PROMISOR_REMOTE_H
2#define PROMISOR_REMOTE_H
3
9e27beaa
CC
4struct object_id;
5
48de3158
CC
6/*
7 * Promisor remote linked list
8 * Its information come from remote.XXX config entries.
9 */
10struct promisor_remote {
11 struct promisor_remote *next;
12 const char name[FLEX_ARRAY];
13};
14
9cfebc1f 15extern void promisor_remote_reinit(void);
48de3158
CC
16extern struct promisor_remote *promisor_remote_find(const char *remote_name);
17extern int has_promisor_remote(void);
9e27beaa
CC
18extern int promisor_remote_get_direct(struct repository *repo,
19 const struct object_id *oids,
20 int oid_nr);
48de3158
CC
21
22#endif /* PROMISOR_REMOTE_H */