diff options
author | Jeff King <peff@peff.net> | 2008-02-06 05:11:18 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-06 14:52:23 -0800 |
commit | ab88c36321df647e17d477f19591cf6ca95de7f0 (patch) | |
tree | 8523c9bde61394afe1c658df8d5d54f642ac793e /cache.h | |
parent | b828fef678c21d017f18d2094bfdaac94e5fbf7a (diff) | |
download | git-ab88c36321df647e17d477f19591cf6ca95de7f0.tar.gz |
allow suppressing of global and system config
The GIT_CONFIG_NOGLOBAL and GIT_CONFIG_NOSYSTEM environment
variables are magic undocumented switches that can be used
to ensure a totally clean environment. This is necessary for
running reliable tests, since those config files may contain
settings that change the outcome of tests.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -589,6 +589,9 @@ 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); +extern int git_env_bool(const char *, int); +extern int git_config_system(void); +extern int git_config_global(void); #define MAX_GITNAME (1000) extern char git_default_email[MAX_GITNAME]; |