Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-17 23:09:58 +0300
committerJunio C Hamano <gitster@pobox.com>2018-08-17 23:09:58 +0300
commitf382c24ef0331d5b56461cb0c0480b58ae75cf7c (patch)
treef8b1ea94b81b89d64d47315920a6a0f87d08cd44 /config.h
parent3146f8a6a0291ef3a873f8a04d97f1a99e75d515 (diff)
parent8ad169c4ba2f0897cd378bccd1c08b04e116c787 (diff)
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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/config.h b/config.h
index 1d56fe6aa2..2d5c18b05f 100644
--- a/config.h
+++ b/config.h
@@ -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);