summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-05-05 15:16:15 +0200
committerCarlos Martín Nieto <cmn@elego.de>2011-05-05 16:18:11 +0200
commit094aaaaee92f4fc98a6c3c3af36183cb217948a8 (patch)
tree5935d4f3d09226c3d015d8508f237662af2afba0 /src/config.h
parent0130d8184e7a0087a5b95700e9a19d60f35b869f (diff)
downloadlibgit2-094aaaaee92f4fc98a6c3c3af36183cb217948a8.tar.gz
config: store the section name separately
The section and variable names use different rules, so store them as two different variables internally. This will simplify the configuration-writing code as well later on, but even with parsing, the code is simpler. Take this opportunity to add a variable to the list directly when parsing instead of passing through config_set.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index e54933d5f..82a66bfbf 100644
--- a/src/config.h
+++ b/src/config.h
@@ -23,6 +23,7 @@ struct git_config {
struct git_cvar {
git_cvar *next;
+ char *section;
char *name;
char *value;
};