]> git.99rst.org Git - git.git/commitdiff
doc/git-config: explain --file instead of referring to GIT_CONFIG
authorJeff King <redacted>
Wed, 14 Jul 2021 21:37:29 +0000 (17:37 -0400)
committerJunio C Hamano <redacted>
Tue, 20 Jul 2021 21:55:06 +0000 (14:55 -0700)
The explanation for the --file option only refers to GIT_CONFIG. This
redirection to an environment variable is confusing, but doubly so
because the description of GIT_CONFIG is out of date.

Let's describe --file from scratch, detailing both the reading and
writing behavior as we do for other similar options like --system, etc.

Signed-off-by: Jeff King <redacted>
Reviewed-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-config.txt

index 5cddadafd2ee1853bb83846053302e00d14fca9a..6c78ad1c1312d4bf0207490346318d044a89c818 100644 (file)
@@ -143,7 +143,13 @@ See also <<FILES>>.
 
 -f config-file::
 --file config-file::
-       Use the given config file instead of the one specified by GIT_CONFIG.
+       For writing options: write to the specified file rather than the
+       repository `.git/config`.
++
+For reading options: read only from the specified file rather than from all
+available files.
++
+See also <<FILES>>.
 
 --blob blob::
        Similar to `--file` but use the given blob instead of a file. E.g.
git clone https://git.99rst.org/PROJECT