summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dbdf585)
raw | patch | inline | side by side (parent: dbdf585)
author | Jeff King <peff@peff.net> | |
Tue, 24 May 2011 22:49:36 +0000 (18:49 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 24 May 2011 23:20:48 +0000 (16:20 -0700) |
Nobody outside of git_config_from_parameters should need
to use the GIT_CONFIG_PARAMETERS parsing functions, so let's
make them private.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
to use the GIT_CONFIG_PARAMETERS parsing functions, so let's
make them private.
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 123dd4bb93ebfd387a79bd6a4ccf012257a8b0b0..45bb36d17f384e6d1ec2233fbd8a25c49851ea3f 100644 (file)
--- a/cache.h
+++ b/cache.h
extern int git_default_config(const char *, const char *, void *);
extern int git_config_from_file(config_fn_t fn, const char *, void *);
extern void git_config_push_parameter(const char *text);
-extern int git_config_parse_parameter(const char *text);
-extern int git_config_parse_environment(void);
extern int git_config_from_parameters(config_fn_t fn, void *data);
extern int git_config(config_fn_t fn, void *);
extern int git_config_early(config_fn_t fn, void *, const char *repo_config);
diff --git a/config.c b/config.c
index c431f41c5a0d0645a53242e046350ff95a8b48f5..230fe2c0a2f779fd20ba1730349c0fc7bb0d1bef 100644 (file)
--- a/config.c
+++ b/config.c
strbuf_release(&env);
}
-int git_config_parse_parameter(const char *text)
+static int git_config_parse_parameter(const char *text)
{
struct config_item *ct;
struct strbuf tmp = STRBUF_INIT;
return 0;
}
-int git_config_parse_environment(void) {
+static int git_config_parse_environment(void) {
const char *env = getenv(CONFIG_DATA_ENVIRONMENT);
char *envw;
const char **argv = NULL;