From: Jonathan Nieder Date: Sun, 14 Oct 2012 08:53:59 +0000 (-0700) Subject: doc: advertise GIT_CONFIG_NOSYSTEM X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8ef401cd0ff5d51b148c1b1297dab6ef32227c1;p=git.git doc: advertise GIT_CONFIG_NOSYSTEM On a multiuser system where mortals do not have write access to /etc, the GIT_CONFIG_NOSYSTEM variable is the best tool we have to keep getting work done when a syntax error or other problem renders /etc/gitconfig buggy, until the sysadmin sorts the problem out. Noticed while experimenting with teaching git to error out when /etc/gitconfig is unreadable. Signed-off-by: Jonathan Nieder Acked-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt index 2d6ef32a0..4ba17c187 100644 --- a/Documentation/git-config.txt +++ b/Documentation/git-config.txt @@ -240,6 +240,10 @@ GIT_CONFIG:: Using the "--global" option forces this to ~/.gitconfig. Using the "--system" option forces this to $(prefix)/etc/gitconfig. +GIT_CONFIG_NOSYSTEM:: + Whether to skip reading settings from the system-wide + $(prefix)/etc/gitconfig file. See linkgit:git[1] for details. + See also <>. diff --git a/Documentation/git.txt b/Documentation/git.txt index 27da0eb20..96712889f 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -771,6 +771,14 @@ for further details. and read the password from its STDOUT. See also the 'core.askpass' option in linkgit:git-config[1]. +'GIT_CONFIG_NOSYSTEM':: + Whether to skip reading settings from the system-wide + `$(prefix)/etc/gitconfig` file. This environment variable can + be used along with `$HOME` and `$XDG_CONFIG_HOME` to create a + predictable environment for a picky script, or you can set it + temporarily to avoid using a buggy `/etc/gitconfig` file while + waiting for someone with sufficient permissions to fix it. + 'GIT_FLUSH':: If this environment variable is set to "1", then commands such as 'git blame' (in incremental mode), 'git rev-list', 'git log',