summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLars R. Damerow <lars@pixar.com>2010-03-17 12:55:51 -0700
committerJunio C Hamano <gitster@pobox.com>2010-03-28 09:19:05 -0700
commit0ef37164c2e453e8348fee05e50d3a4ed6d69f6b (patch)
tree94038f312a314a0067d44ed7f765383da65c4d90 /config.c
parent5e4f61474202122f376b16181b760f390623bf4e (diff)
downloadgit-0ef37164c2e453e8348fee05e50d3a4ed6d69f6b.tar.gz
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 <lars@pixar.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 6963fbea43..70e460016e 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;