config: document git config getter return value

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Han-Wen Nienhuys committed Aug 6, 2018 at 16:33 UTC 8ad169c4ba2f0897cd378bccd1c08b04e116c787
1 file changed +6 -1
config.h
+6 -1
@@ -179,9 +179,14 @@ struct config_set {
179
180 extern void git_configset_init(struct config_set *cs);
181 extern int git_configset_add_file(struct config_set *cs, const char *filename);
182 -extern int git_configset_get_value(struct config_set *cs, const char *key, const char **value);
182 extern const struct string_list *git_configset_get_value_multi(struct config_set *cs, const char *key);
183 extern void git_configset_clear(struct config_set *cs);
184 +
185 +/*
186 + * These functions return 1 if not found, and 0 if found, leaving the found
187 + * value in the 'dest' pointer.
188 + */
189 +extern int git_configset_get_value(struct config_set *cs, const char *key, const char **dest);
190 extern int git_configset_get_string_const(struct config_set *cs, const char *key, const char **dest);
191 extern int git_configset_get_string(struct config_set *cs, const char *key, char **dest);
192 extern int git_configset_get_int(struct config_set *cs, const char *key, int *dest);