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>

Jeff King committed Jul 14, 2021 at 17:37 UTC 4bb9eb5f91102f1df4f5d47cf7d78ed67307f144
1 file changed +7 -1
Documentation/git-config.txt
+7 -1
@@ -143,7 +143,13 @@ See also <<FILES>>.
143
144 -f config-file::
145 --file config-file::
146 - Use the given config file instead of the one specified by GIT_CONFIG.
146 + For writing options: write to the specified file rather than the
147 + repository `.git/config`.
148 ++
149 +For reading options: read only from the specified file rather than from all
150 +available files.
151 ++
152 +See also <<FILES>>.
153
154 --blob blob::
155 Similar to `--file` but use the given blob instead of a file. E.g.