summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-03-30 11:30:40 +0200
committerCarlos Martín Nieto <cmn@elego.de>2011-03-30 13:42:24 +0200
commit2974aa94c33b3845db3c999354d4202ff2b5bd2d (patch)
tree46ebdab537e5cf19b6b9a8abf7295f84941e4e21 /src/config.h
parent2e445cacd23dd494e182024cf1b229a3727339aa (diff)
downloadlibgit2-2974aa94c33b3845db3c999354d4202ff2b5bd2d.tar.gz
Determine variable type at runtime
Config variables should be interpreted at run-time, as we don't know if a zero means false or zero, or if yes means true or "yes". As a variable has no intrinsic type, git_cvtype is gone and the public API takes care of enforcing a few rules. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/config.h b/src/config.h
index 3b9da5241..2be013a72 100644
--- a/src/config.h
+++ b/src/config.h
@@ -17,13 +17,8 @@ struct git_config {
};
struct git_cvar {
- git_cvar_type type;
char *name;
- union {
- unsigned char boolean;
- long integer;
- char *string;
- } value;
+ char *value;
};
#endif