promisor-remote.h: include missing header

When we ran `make hdr-check`, we got the following warning message: promisor-remote.h:21:46: warning: declaration of 'struct repository' will not be visible outside of this function [-Wvisibility] extern int promisor_remote_get_direct(struct repository *repo, ^ 1 warning generated. This was caused by a missing reference to `struct repository`, which is defined in "repository.h". Include this missing header to fix this warning. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Denton Liu committed Sep 25, 2019 at 01:20 UTC b06fdead04b838a2522776ce7e3465146d84a224
1 file changed +2
promisor-remote.h
+2
@@ -1,6 +1,8 @@
1 #ifndef PROMISOR_REMOTE_H
2 #define PROMISOR_REMOTE_H
3
4 +#include "repository.h"
5 +
6 struct object_id;
7
8 /*