Skip to content

Commit 8ad169c

Browse files
hanwengitster
authored andcommitted
config: document git config getter return value
Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 53f9a3e commit 8ad169c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

config.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,14 @@ struct config_set {
179179

180180
extern void git_configset_init(struct config_set *cs);
181181
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);
183182
extern const struct string_list *git_configset_get_value_multi(struct config_set *cs, const char *key);
184183
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);
185190
extern int git_configset_get_string_const(struct config_set *cs, const char *key, const char **dest);
186191
extern int git_configset_get_string(struct config_set *cs, const char *key, char **dest);
187192
extern int git_configset_get_int(struct config_set *cs, const char *key, int *dest);

0 commit comments

Comments
 (0)