diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-17 13:09:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-17 13:09:58 -0700 |
commit | f382c24ef0331d5b56461cb0c0480b58ae75cf7c (patch) | |
tree | f8b1ea94b81b89d64d47315920a6a0f87d08cd44 /config.h | |
parent | 3146f8a6a0291ef3a873f8a04d97f1a99e75d515 (diff) | |
parent | 8ad169c4ba2f0897cd378bccd1c08b04e116c787 (diff) | |
download | git-f382c24ef0331d5b56461cb0c0480b58ae75cf7c.tar.gz |
Merge branch 'hn/config-in-code-comment'
Header update.
* hn/config-in-code-comment:
config: document git config getter return value
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -189,9 +189,14 @@ struct config_set { extern void git_configset_init(struct config_set *cs); extern int git_configset_add_file(struct config_set *cs, const char *filename); -extern int git_configset_get_value(struct config_set *cs, const char *key, const char **value); extern const struct string_list *git_configset_get_value_multi(struct config_set *cs, const char *key); extern void git_configset_clear(struct config_set *cs); + +/* + * These functions return 1 if not found, and 0 if found, leaving the found + * value in the 'dest' pointer. + */ +extern int git_configset_get_value(struct config_set *cs, const char *key, const char **dest); extern int git_configset_get_string_const(struct config_set *cs, const char *key, const char **dest); extern int git_configset_get_string(struct config_set *cs, const char *key, char **dest); extern int git_configset_get_int(struct config_set *cs, const char *key, int *dest); |