summaryrefslogtreecommitdiff
path: root/config.c
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 /config.c
parent615ff912c5b30f70d5b0d1f6d6764327a3ecd337 (diff)
downloadgit-2496844bb2e5410019bf51c10b1f3068b621fa27.tar.gz
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 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index 44b2c93b24..a1f3b59568 100644
--- a/config.c
+++ b/config.c
@@ -39,8 +39,8 @@ void git_config_push_parameter(const char *text)
strbuf_release(&env);
}
-static int git_config_parse_parameter(const char *text,
- config_fn_t fn, void *data)
+int git_config_parse_parameter(const char *text,
+ config_fn_t fn, void *data)
{
struct strbuf **pair;
pair = strbuf_split_str(text, '=', 2);