From 80a665aaca70ea3f5fda0955c39884bead13d2a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Fri, 16 Dec 2011 02:28:39 +0100 Subject: 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. --- include/git2/config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/git2') 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 *); }; -- cgit v1.2.1