config: make environment parsing routines static

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>

Jeff King committed May 24, 2011 at 18:49 UTC 3ddf0968c2f64a9f9fa6880d9c22d40459c88335
2 files changed +2 -4
cache.h
-2
@@ -982,8 +982,6 @@ typedef int (*config_fn_t)(const char *, const char *, void *);
982 extern int git_default_config(const char *, const char *, void *);
983 extern int git_config_from_file(config_fn_t fn, const char *, void *);
984 extern void git_config_push_parameter(const char *text);
985 -extern int git_config_parse_parameter(const char *text);
986 -extern int git_config_parse_environment(void);
985 extern int git_config_from_parameters(config_fn_t fn, void *data);
986 extern int git_config(config_fn_t fn, void *);
987 extern int git_config_early(config_fn_t fn, void *, const char *repo_config);
config.c
+2 -2
@@ -48,7 +48,7 @@ void git_config_push_parameter(const char *text)
48 strbuf_release(&env);
49 }
50
51 -int git_config_parse_parameter(const char *text)
51 +static int git_config_parse_parameter(const char *text)
52 {
53 struct config_item *ct;
54 struct strbuf tmp = STRBUF_INIT;
@@ -75,7 +75,7 @@ int git_config_parse_parameter(const char *text)
75 return 0;
76 }
77
78 -int git_config_parse_environment(void) {
78 +static int git_config_parse_environment(void) {
79 const char *env = getenv(CONFIG_DATA_ENVIRONMENT);
80 char *envw;
81 const char **argv = NULL;