Include it in src/config.h and fix the header name #define.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
GIT_REF_HAS_PEEL = 8,
} git_rtype;
+/** Config variable type */
+typedef enum {
+ GIT_VAR_INT, /** Stores an integer value */
+ GIT_VAR_BOOL, /** Stores a boolean value */
+ GIT_VAR_STR /** Stores a string */
+} git_cvar_type;
+
/** @} */
GIT_END_DECL
-#ifndef INCLUDE_tag_h__
-#define INCLUDE_tag_h__
+#ifndef INCLUDE_config_h__
+#define INCLUDE_config_h__
+
+#include "git2/config.h"
struct git_config {
char *file_path;
git_hashtable *vars;
};
-typedef enum {
- GIT_VAR_INT,
- GIT_VAR_BOOL,
- GIT_VAR_STR
-} git_cvar_type;
-
struct git_cvar {
git_cvar_type type;
char *name;