summaryrefslogtreecommitdiff
path: root/promisor-remote.h
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-09-25 08:20:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-09-28 05:04:19 (GMT)
commitb06fdead04b838a2522776ce7e3465146d84a224 (patch)
treee81ab4e07f78651e258ac4708a43db9693b72f86 /promisor-remote.h
parent97b989ee3a9add534d561aefca0f3b65ec26a924 (diff)
downloadgit-b06fdead04b838a2522776ce7e3465146d84a224.zip
git-b06fdead04b838a2522776ce7e3465146d84a224.tar.gz
git-b06fdead04b838a2522776ce7e3465146d84a224.tar.bz2
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>
Diffstat (limited to 'promisor-remote.h')
-rw-r--r--promisor-remote.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/promisor-remote.h b/promisor-remote.h
index 8200dfc..76e8d86 100644
--- a/promisor-remote.h
+++ b/promisor-remote.h
@@ -1,6 +1,8 @@
#ifndef PROMISOR_REMOTE_H
#define PROMISOR_REMOTE_H
+#include "repository.h"
+
struct object_id;
/*