]> git.ipfire.org Git - thirdparty/git.git/blame - promisor-remote.h
Documentation/RelNotes/2.45.0.txt: fix typo
[thirdparty/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
625e7f14 12 * from extensions.partialclone.
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
ef7dc2e9 20void repo_promisor_remote_reinit(struct repository *r);
ef7dc2e9 21void promisor_remote_clear(struct promisor_remote_config *config);
ef7dc2e9 22struct promisor_remote *repo_promisor_remote_find(struct repository *r, const char *remote_name);
ef7dc2e9 23int repo_has_promisor_remote(struct repository *r);
db7ed741
JT
24
25/*
26 * Fetches all requested objects from all promisor remotes, trying them one at
00057bf1 27 * a time until all objects are fetched.
db7ed741 28 *
00057bf1 29 * If oid_nr is 0, this function returns immediately.
db7ed741 30 */
00057bf1
JT
31void promisor_remote_get_direct(struct repository *repo,
32 const struct object_id *oids,
33 int oid_nr);
48de3158
CC
34
35#endif /* PROMISOR_REMOTE_H */