summaryrefslogtreecommitdiff
path: root/Documentation/git-config.txt
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2021-07-14 21:37:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-20 21:55:06 (GMT)
commit4bb9eb5f91102f1df4f5d47cf7d78ed67307f144 (patch)
tree0b6b35262e871b2ef2baa4d85e3d2e23fba50fa0 /Documentation/git-config.txt
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb (diff)
downloadgit-4bb9eb5f91102f1df4f5d47cf7d78ed67307f144.zip
git-4bb9eb5f91102f1df4f5d47cf7d78ed67307f144.tar.gz
git-4bb9eb5f91102f1df4f5d47cf7d78ed67307f144.tar.bz2
doc/git-config: explain --file instead of referring to GIT_CONFIG
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 <peff@peff.net> Reviewed-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-config.txt')
-rw-r--r--Documentation/git-config.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index 5cddada..6c78ad1 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -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.