summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-12-16 02:28:39 +0100
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-12-16 02:28:39 +0100
commit80a665aaca70ea3f5fda0955c39884bead13d2a2 (patch)
tree73c1b97da7441e71ac129a58a8dad992e695a402 /include
parent7b2b4adfb1cb71f085a88418d1d5b631bf26ebd8 (diff)
downloadlibgit2-80a665aaca70ea3f5fda0955c39884bead13d2a2.tar.gz
config: really delete variables
Instead of just setting the value to NULL, which gives unwanted results when asking for that variable after deleting it, delete the variable from the list and re-write the file.
Diffstat (limited to 'include')
-rw-r--r--include/git2/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/config.h b/include/git2/config.h
index 36647591..f78fe40a 100644
--- a/include/git2/config.h
+++ b/include/git2/config.h
@@ -30,6 +30,7 @@ struct git_config_file {
int (*open)(struct git_config_file *);
int (*get)(struct git_config_file *, const char *key, const char **value);
int (*set)(struct git_config_file *, const char *key, const char *value);
+ int (*delete)(struct git_config_file *, const char *key);
int (*foreach)(struct git_config_file *, int (*fn)(const char *, const char *, void *), void *data);
void (*free)(struct git_config_file *);
};