From: Lars R. Damerow Date: Wed, 17 Mar 2010 19:55:51 +0000 (-0700) Subject: config.c: remove static keyword from git_env_bool() X-Git-Tag: v1.7.2-rc0~129^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0ef37164c2e453e8348fee05e50d3a4ed6d69f6b;p=git.git config.c: remove static keyword from git_env_bool() Since this function is the preferred way to handle boolean environment variables it's useful to have it available to other files. Signed-off-by: Lars R. Damerow Signed-off-by: Junio C Hamano --- diff --git a/cache.h b/cache.h index 2928107bb..535153e1b 100644 --- a/cache.h +++ b/cache.h @@ -949,6 +949,7 @@ extern int git_config_set_multivar(const char *, const char *, const char *, int extern int git_config_rename_section(const char *, const char *); extern const char *git_etc_gitconfig(void); extern int check_repository_format_version(const char *var, const char *value, void *cb); +extern int git_env_bool(const char *, int); extern int git_config_system(void); extern int git_config_global(void); extern int config_error_nonbool(const char *); diff --git a/config.c b/config.c index 6963fbea4..70e460016 100644 --- a/config.c +++ b/config.c @@ -683,7 +683,7 @@ const char *git_etc_gitconfig(void) return system_wide; } -static int git_env_bool(const char *k, int def) +int git_env_bool(const char *k, int def) { const char *v = getenv(k); return v ? git_config_bool(k, v) : def;