summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-03-29 17:35:02 +0200
committerCarlos Martín Nieto <cmn@elego.de>2011-03-29 17:35:02 +0200
commit6d7bb4e039f6f6cf4e8542024550840a4ba50624 (patch)
tree049f6f6d6d48887a9adbfcd61903fcdfb033a71d /src/config.h
parent3d23b74af75bc35b3676c1a7fc1f5a0299c9f4ee (diff)
downloadlibgit2-6d7bb4e039f6f6cf4e8542024550840a4ba50624.tar.gz
Move git_cvar_type to include/git2/config.h
Include it in src/config.h and fix the header name #define. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/config.h b/src/config.h
index 2aa9ec804..3b9da5241 100644
--- a/src/config.h
+++ b/src/config.h
@@ -1,5 +1,7 @@
-#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;
@@ -14,12 +16,6 @@ struct git_config {
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;