diff options
author | Jeff King <peff@peff.net> | 2011-06-09 11:56:42 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-06-22 11:25:21 -0700 |
commit | 2496844bb2e5410019bf51c10b1f3068b621fa27 (patch) | |
tree | bbce78110ac31de670a299aea96165198531c423 /config.c | |
parent | 615ff912c5b30f70d5b0d1f6d6764327a3ecd337 (diff) | |
download | git-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |