git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] advice: recommend GIT_ADVICE=0 for tools

From
Derrick Stolee <stolee@gmail.com>
Date
Sep 6, 2024, 19:47 UTC
Message-ID
<a60b6cda-6f55-4133-9b26-5475e20cc839@gmail.com>
In-Reply-To
<CAPig+cSGry+QMpkkiJb8A94w1M+J_5beEKaT-xrGeL34xME4hA@mail.gmail.com>
On 9/5/24 2:02 PM, Eric Sunshine wrote:
Show 24 quoted lines
> On Thu, Sep 5, 2024 at 1:59 PM Derrick Stolee via GitGitGadget
> <gitgitgadget@gmail.com> wrote:
>> 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.
>>
>> Signed-off-by: Derrick Stolee <stolee@gmail.com>
>> ---
>> diff --git a/Documentation/config/advice.txt b/Documentation/config/advice.txt
>> @@ -1,8 +1,12 @@
>>   advice.*::
>>          These variables control various optional help messages designed to
>> -       aid new users.  When left unconfigured, Git will give the message
>> -       alongside instructions on how to squelch it.  You can tell Git
>> -       that you do not need the help message by setting these to `false`:
>> +       aid new users. These are output to `stderr` by default as they are
>> +       intended to help human readers. Tools that execute Git as a subprocess
>> +       can disable these messages by setting `GIT_ACVICE=0` in the environment.
> 
> s/GIT_ACVICE/GIT_ADVICE/

Thank you for catching my typo! -Stolee

Previous: Eric SunshineNext: Junio C Hamano
Message 3 of 6 in “advice: recommend GIT_ADVICE=0 for tools”
  1. advice: recommend GIT_ADVICE=0 for toolsDerrick Stolee via GitGitGadget, Sep 5, 2024
  2. Eric SunshineSep 5, 2024
  3. Derrick StoleeSep 6, 2024
  4. Junio C HamanoSep 5, 2024
  5. Derrick StoleeSep 6, 2024
  6. advice: recommend GIT_ADVICE=0 for toolsDerrick Stolee via GitGitGadget, Sep 6, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.