aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-06-09 11:56:42 -0400
committerJunio C Hamano <gitster@pobox.com>2011-06-22 11:25:21 -0700
commit2496844bb2e5410019bf51c10b1f3068b621fa27 (patch)
treebbce78110ac31de670a299aea96165198531c423 /cache.h
parent615ff912c5b30f70d5b0d1f6d6764327a3ecd337 (diff)
downloadgit-2496844bb2e5410019bf51c10b1f3068b621fa27.tar.gz
git-2496844bb2e5410019bf51c10b1f3068b621fa27.tar.xz
config: make git_config_parse_parameter a public function
We use this internally to parse "git -c core.foo=bar", but the general format of "key=value" is useful for other places. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index ce73e1f09..fce9bc050 100644
--- a/cache.h
+++ b/cache.h
@@ -1030,6 +1030,8 @@ extern int config_error_nonbool(const char *);
extern const char *get_log_output_encoding(void);
extern const char *get_commit_output_encoding(void);
+extern int git_config_parse_parameter(const char *, config_fn_t fn, void *data);
+
extern const char *config_exclusive_filename;
#define MAX_GITNAME (1000)