mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Add initial support for many promisor remotes
The promisor-remote.{c,h} files will contain functions to
manage many promisor remotes.
We expect that there will not be a lot of promisor remotes,
so it is ok to use a simple linked list to manage them.
Helped-by: Jeff King <peff@peff.net>
Helped-by: SZEDER Gábor <szeder.dev@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
2e860675b6
commit
48de315817
16
promisor-remote.h
Normal file
16
promisor-remote.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef PROMISOR_REMOTE_H
|
||||
#define PROMISOR_REMOTE_H
|
||||
|
||||
/*
|
||||
* 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);
|
||||
|
||||
#endif /* PROMISOR_REMOTE_H */
|
||||
Reference in New Issue
Block a user