]> git.ipfire.org Git - thirdparty/git.git/blame_incremental - promisor-remote.h
Merge git-gui into ml/git-gui-exec-path-fix
[thirdparty/git.git] / promisor-remote.h
... / ...
CommitLineData
1#ifndef PROMISOR_REMOTE_H
2#define PROMISOR_REMOTE_H
3
4#include "repository.h"
5
6struct object_id;
7
8/*
9 * Promisor remote linked list
10 *
11 * Information in its fields come from remote.XXX config entries or
12 * from extensions.partialclone.
13 */
14struct promisor_remote {
15 struct promisor_remote *next;
16 const char *partial_clone_filter;
17 const char name[FLEX_ARRAY];
18};
19
20void repo_promisor_remote_reinit(struct repository *r);
21void promisor_remote_clear(struct promisor_remote_config *config);
22struct promisor_remote *repo_promisor_remote_find(struct repository *r, const char *remote_name);
23int repo_has_promisor_remote(struct repository *r);
24
25/*
26 * Fetches all requested objects from all promisor remotes, trying them one at
27 * a time until all objects are fetched.
28 *
29 * If oid_nr is 0, this function returns immediately.
30 */
31void promisor_remote_get_direct(struct repository *repo,
32 const struct object_id *oids,
33 int oid_nr);
34
35#endif /* PROMISOR_REMOTE_H */