]> git.ipfire.org Git - thirdparty/git.git/commit
advice: recommend GIT_ADVICE=0 for tools
authorDerrick Stolee <stolee@gmail.com>
Fri, 6 Sep 2024 20:22:35 +0000 (20:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Sep 2024 21:15:16 +0000 (14:15 -0700)
commitfb2b9815a4b5ea04a5f08940f546c6d5ef5e2414
treeda0edf2c05c98ad37cbd2feb455b1d74f6e47a50
parent2e7b89e038c0c888acf61f1b4ee5a43d4dd5e94c
advice: recommend GIT_ADVICE=0 for tools

The GIT_ADVICE environment variable was added implicitly in b79deeb5544
(advice: add --no-advice global option, 2024-05-03) but was not
documented. Add documentation to show that it is an option for tools
that want to disable these messages. Make note that while the
--no-advice option exists, older Git versions will fail to parse that
option. The environment variable presents a way to change the behavior
of Git versions that understand it without disrupting older versions.

Co-authored-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/advice.txt
Documentation/git.txt