mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
cocci: apply the "promisor-remote.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "promisor-remote.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
afe27c8894
commit
a5183d7696
@@ -18,24 +18,9 @@ struct promisor_remote {
|
||||
};
|
||||
|
||||
void repo_promisor_remote_reinit(struct repository *r);
|
||||
static inline void promisor_remote_reinit(void)
|
||||
{
|
||||
repo_promisor_remote_reinit(the_repository);
|
||||
}
|
||||
|
||||
void promisor_remote_clear(struct promisor_remote_config *config);
|
||||
|
||||
struct promisor_remote *repo_promisor_remote_find(struct repository *r, const char *remote_name);
|
||||
static inline struct promisor_remote *promisor_remote_find(const char *remote_name)
|
||||
{
|
||||
return repo_promisor_remote_find(the_repository, remote_name);
|
||||
}
|
||||
|
||||
int repo_has_promisor_remote(struct repository *r);
|
||||
static inline int has_promisor_remote(void)
|
||||
{
|
||||
return repo_has_promisor_remote(the_repository);
|
||||
}
|
||||
|
||||
/*
|
||||
* Fetches all requested objects from all promisor remotes, trying them one at
|
||||
|
||||
Reference in New Issue
Block a user