summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-09-04 02:17:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-09-04 02:17:52 (GMT)
commitfa6d3749edce0a5ba8c9150f984cc307e0092d0d (patch)
tree3ca97911ade88435507d1151fb5885087ccf7f55 /cache.h
parent0b2cef2805a02a9db4a3ba01004dd767af97c692 (diff)
parent9e9de18f1ad39901a8f0c67f0af70d66d427e326 (diff)
downloadgit-fa6d3749edce0a5ba8c9150f984cc307e0092d0d.zip
git-fa6d3749edce0a5ba8c9150f984cc307e0092d0d.tar.gz
git-fa6d3749edce0a5ba8c9150f984cc307e0092d0d.tar.bz2
Merge branch 'jk/fix-alias-pager-config-key-warnings' into maint
Because the configuration system does not allow "alias.0foo" and "pager.0foo" as the configuration key, the user cannot use '0foo' as a custom command name anyway, but "git 0foo" tried to look these keys up and emitted useless warnings before saying '0foo is not a git command'. These warning messages have been squelched. * jk/fix-alias-pager-config-key-warnings: config: silence warnings for command names with invalid keys
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 4f55466..c9e2f74 100644
--- a/cache.h
+++ b/cache.h
@@ -1446,6 +1446,7 @@ extern int git_config_pathname(const char **, const char *, const char *);
extern int git_config_set_in_file(const char *, const char *, const char *);
extern int git_config_set(const char *, const char *);
extern int git_config_parse_key(const char *, char **, int *);
+extern int git_config_key_is_valid(const char *key);
extern int git_config_set_multivar(const char *, const char *, const char *, int);
extern int git_config_set_multivar_in_file(const char *, const char *, const char *, const char *, int);
extern int git_config_rename_section(const char *, const char *);