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:
authorJeff King <peff@peff.net>2011-06-09 19:56:42 +0400
committerJunio C Hamano <gitster@pobox.com>2011-06-22 22:25:21 +0400
commit2496844bb2e5410019bf51c10b1f3068b621fa27 (patch)
treebbce78110ac31de670a299aea96165198531c423 /cache.h
parent615ff912c5b30f70d5b0d1f6d6764327a3ecd337 (diff)
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 ce73e1f09d..fce9bc0503 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)