Skip to content

Commit f382c24

Browse files
committed
Merge branch 'hn/config-in-code-comment'
Header update. * hn/config-in-code-comment: config: document git config getter return value
2 parents 3146f8a + 8ad169c commit f382c24

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
@@ -189,9 +189,14 @@ struct config_set {
189189

190190
extern void git_configset_init(struct config_set *cs);
191191
extern int git_configset_add_file(struct config_set *cs, const char *filename);
192-
extern int git_configset_get_value(struct config_set *cs, const char *key, const char **value);
193192
extern const struct string_list *git_configset_get_value_multi(struct config_set *cs, const char *key);
194193
extern void git_configset_clear(struct config_set *cs);
194+
195+
/*
196+
* These functions return 1 if not found, and 0 if found, leaving the found
197+
* value in the 'dest' pointer.
198+
*/
199+
extern int git_configset_get_value(struct config_set *cs, const char *key, const char **dest);
195200
extern int git_configset_get_string_const(struct config_set *cs, const char *key, const char **dest);
196201
extern int git_configset_get_string(struct config_set *cs, const char *key, char **dest);
197202
extern int git_configset_get_int(struct config_set *cs, const char *key, int *dest);

0 commit comments

Comments
 (0)