diff options
| author | Carlos Martín Nieto <cmn@elego.de> | 2011-06-28 15:20:42 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-07-05 02:31:26 +0200 |
| commit | 6d4b609718ad7ef7211974624a06564f15610a8b (patch) | |
| tree | 6407cc64b19afebd5e0d237cc093b8a765c39a79 /src/config.c | |
| parent | 9f86ec52fab7e7eeb9ee95087c08fc88185d5ff3 (diff) | |
| download | libgit2-6d4b609718ad7ef7211974624a06564f15610a8b.tar.gz | |
Add git_config_del to delete a variable
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c index 12fa8f278..a5e27dd61 100644 --- a/src/config.c +++ b/src/config.c @@ -167,15 +167,15 @@ int git_config_foreach(git_config *cfg, int (*fn)(const char *, const char *, vo return ret; } +int git_config_del(git_config *cfg, const char *name) +{ + return git_config_set_string(cfg, name, NULL); +} /************** * Setters **************/ -/* - * Internal function to actually set the string value of a variable - */ - int git_config_set_long(git_config *cfg, const char *name, long int value) { char str_value[32]; /* All numbers should fit in here */ |
