1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-27 00:40:01 +02:00
git/promisor-remote.h
Christian Couder 9e27beaa23 promisor-remote: implement promisor_remote_get_direct()
This is implemented for now by calling fetch_objects(). It fetches
from all the promisor remotes.

Helped-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Helped-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-06-25 14:05:37 -07:00

22 lines
530 B
C

#ifndef PROMISOR_REMOTE_H
#define PROMISOR_REMOTE_H
struct object_id;
/*
* Promisor remote linked list
* Its information come from remote.XXX config entries.
*/
struct promisor_remote {
struct promisor_remote *next;
const char name[FLEX_ARRAY];
};
extern struct promisor_remote *promisor_remote_find(const char *remote_name);
extern int has_promisor_remote(void);
extern int promisor_remote_get_direct(struct repository *repo,
const struct object_id *oids,
int oid_nr);
#endif /* PROMISOR_REMOTE_H */