diff options
author | Carlos Martín Nieto <cmn@elego.de> | 2011-06-28 15:21:44 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-07-05 02:32:17 +0200 |
commit | 2601fcfc1e1c22874d266dc7086532fa52f44dd5 (patch) | |
tree | bf3b3d7318575b1f528b2f475bc1b5c77bfa2ee1 /include/git2/config.h | |
parent | 6d4b609718ad7ef7211974624a06564f15610a8b (diff) | |
download | libgit2-2601fcfc1e1c22874d266dc7086532fa52f44dd5.tar.gz |
Add tests for deleting a config var
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'include/git2/config.h')
-rw-r--r-- | include/git2/config.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index 75003645..a8bff6cf 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -254,7 +254,15 @@ GIT_EXTERN(int) git_config_set_bool(git_config *cfg, const char *name, int value GIT_EXTERN(int) git_config_set_string(git_config *cfg, const char *name, const char *value); /** - * Perform an operation on each config variable + * Delete a config variable + * + * @param cfg the configuration + * @param name the variable to delete + */ +GIT_EXTERN(int) git_config_del(git_config *cfg, const char *name); + +/** + * Perform an operation on each config variable. * * The callback receives the normalized name and value of each variable * in the config backend, and the data pointer passed to this function. |