promisor-remote: implement promisor_remote_get_direct()
[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
15extern struct promisor_remote *promisor_remote_find(const char *remote_name);
16extern int has_promisor_remote(void);
9e27beaa
CC
17extern int promisor_remote_get_direct(struct repository *repo,
18 const struct object_id *oids,
19 int oid_nr);
48de3158
CC
20
21#endif /* PROMISOR_REMOTE_H */