summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-03-10 21:24:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-10 21:24:22 (GMT)
commit963792ed277bde985ea9ff4953529d656b186571 (patch)
treece457fde106f33c0cd9c75b1c15a5169752431cb /cache.h
parent34061299002fcbf5467385debbd9ad3d5f1c5a4e (diff)
parentad8c7cdadd96c66d0adf894250c8f4dd77bb2bee (diff)
downloadgit-963792ed277bde985ea9ff4953529d656b186571.zip
git-963792ed277bde985ea9ff4953529d656b186571.tar.gz
git-963792ed277bde985ea9ff4953529d656b186571.tar.bz2
Merge branch 'jk/parse-config-key-cleanup'
The "parse_config_key()" API function has been cleaned up. * jk/parse-config-key-cleanup: parse_hide_refs_config: tell parse_config_key we don't want a subsection parse_config_key: allow matching single-level config parse_config_key: use skip_prefix instead of starts_with
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 80b6372..1046dfc 100644
--- a/cache.h
+++ b/cache.h
@@ -1863,8 +1863,11 @@ extern int git_config_include(const char *name, const char *value, void *data);
*
* (i.e., what gets handed to a config_fn_t). The caller provides the section;
* we return -1 if it does not match, 0 otherwise. The subsection and key
- * out-parameters are filled by the function (and subsection is NULL if it is
+ * out-parameters are filled by the function (and *subsection is NULL if it is
* missing).
+ *
+ * If the subsection pointer-to-pointer passed in is NULL, returns 0 only if
+ * there is no subsection at all.
*/
extern int parse_config_key(const char *var,
const char *section,