diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-02-05 00:29:26 +0100 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-02-17 19:50:30 +0100 |
commit | 3005855f7e3980185adc63a68c5b8b5f9e3b506f (patch) | |
tree | 41e7d5c9a45928b8013f7fdd30d6b707a148f083 /include/git2/config.h | |
parent | 5e0dc4af013e23d0cbc737d8ab2756aaf38e1516 (diff) | |
download | libgit2-3005855f7e3980185adc63a68c5b8b5f9e3b506f.tar.gz |
Implement setting multivars
Diffstat (limited to 'include/git2/config.h')
-rw-r--r-- | include/git2/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index 1f037c8ee..82d9de870 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -31,6 +31,7 @@ struct git_config_file { int (*get)(struct git_config_file *, const char *key, const char **value); int (*get_multivar)(struct git_config_file *, const char *key, const char *regexp, int (*fn)(const char *, void *), void *data); int (*set)(struct git_config_file *, const char *key, const char *value); + int (*set_multivar)(git_config_file *cfg, const char *name, const char *regexp, const char *value); int (*del)(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 *); @@ -255,6 +256,12 @@ 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); + +/** + * Set a multivar + */ +GIT_EXTERN(int) git_config_set_multivar(git_config *cfg, const char *name, const char *regexp, const char *value); + /** * Delete a config variable * |