mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
48de315817
commit
9e27beaa23
@@ -1,6 +1,8 @@
|
||||
#ifndef PROMISOR_REMOTE_H
|
||||
#define PROMISOR_REMOTE_H
|
||||
|
||||
struct object_id;
|
||||
|
||||
/*
|
||||
* Promisor remote linked list
|
||||
* Its information come from remote.XXX config entries.
|
||||
@@ -12,5 +14,8 @@ struct promisor_remote {
|
||||
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user