docs: add buffer.h & oid.h to types.h Otherwise docurium/clang chokes on the types, and ignores the documentation comments altogether.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/include/git2/stash.h b/include/git2/stash.h
index 3af9cde..f9e92ab 100644
--- a/include/git2/stash.h
+++ b/include/git2/stash.h
@@ -9,6 +9,7 @@
#include "common.h"
#include "types.h"
+#include "checkout.h"
/**
* @file git2/stash.h
diff --git a/include/git2/transaction.h b/include/git2/transaction.h
index 00ca139..4938570 100644
--- a/include/git2/transaction.h
+++ b/include/git2/transaction.h
@@ -8,6 +8,7 @@
#define INCLUDE_git_transaction_h__
#include "common.h"
+#include "types.h"
/**
* @file git2/transaction.h
diff --git a/include/git2/types.h b/include/git2/types.h
index ad34e01..049c2d2 100644
--- a/include/git2/types.h
+++ b/include/git2/types.h
@@ -63,6 +63,9 @@ typedef int64_t git_time_t;
#endif
+#include "buffer.h"
+#include "oid.h"
+
/** Basic type (loose or packed) of any Git object. */
typedef enum {
GIT_OBJ_ANY = -2, /**< Object can be any of the following */