summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-05-13 16:32:27 -0700
committerRussell Belfer <rb@github.com>2014-05-13 16:32:27 -0700
commit2b52a0bfaedf7571e7ecd706947f5865d513760c (patch)
tree27faafab276a9023f5357b29f537972c4e385732 /src/config.h
parenta37aa82ea6f952745c883065a86162343e438981 (diff)
downloadlibgit2-rb/coverity-fixes.tar.gz
Increase use of config snapshotsrb/coverity-fixes
And decrease extra reload checks of config data.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index 00b6063e7..b0dcb49ac 100644
--- a/src/config.h
+++ b/src/config.h
@@ -76,4 +76,10 @@ extern int git_config__get_bool_force(
extern int git_config__get_int_force(
const git_config *cfg, const char *key, int fallback_value);
+/* API for repository cvar-style lookups from config - not cached, but
+ * uses cvar value maps and fallbacks
+ */
+extern int git_config__cvar(
+ int *out, git_config *config, git_cvar_cached cvar);
+
#endif