summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 615ff91)
raw | patch | inline | side by side (parent: 615ff91)
author | Jeff King <peff@peff.net> | |
Thu, 9 Jun 2011 15:56:42 +0000 (11:56 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 22 Jun 2011 18:25:21 +0000 (11:25 -0700) |
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>
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>
cache.h | patch | blob | history | |
config.c | patch | blob | history |
index ce73e1f09d7fc4f4196e32c2cfdd16e343ad9653..fce9bc0503034d8d9c1820c3bb62d9719c47f0c8 100644 (file)
--- a/cache.h
+++ b/cache.h
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)
diff --git a/config.c b/config.c
index 44b2c93b2425a4ed5ca3a2cf8f042aca8e275c56..a1f3b59568bb6edacc161df65a6016974429c6fa 100644 (file)
--- a/config.c
+++ b/config.c
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);