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

Re: How to undo previously set configuration?

From
Rafael Ascensao <rafa.almas@gmail.com>
Date
Apr 6, 2018, 16:57 UTC
Message-ID
<CACUQV5_E+MOHVD2rGjcQY=iK+tqB3wV9Lh1nwiEP+q+M-1iXzA@mail.gmail.com>
In-Reply-To
<20180406175556.5b6e16f0.olaf@aepfle.de>
On Fri, Apr 6, 2018 at 4:55 PM, Olaf Hering <olaf@aepfle.de> wrote:
>
> This does not work. Initially I copied the global config into the repo and set all unwanted values to <empty>, like 'smtpuser='. Perhaps the config parser recognized that fact, but the consumer does not?
>

Today someone asked on #git for a way to disable diff.external for a single command. Without thinking much I suggested $git -c diff.external= diff; which fails with: `fatal: cannot run : No such file or directory`

In this particular case there was `--no-ext-diff` to get around this and the case was promptly resolved. Just another another example where setting configuration values to "empty" doesn't translate to "disable this option".

Previous: Jeff KingNext: Jeff King
Message 10 of 13 in “How to configure sendemail for no-auth?”
  1. Olaf HeringApr 5, 2018
  2. How to undo previously set configuration?Ævar Arnfjörð Bjarmason, Apr 5, 2018
  3. Olaf HeringApr 5, 2018
  4. Ævar Arnfjörð BjarmasonApr 5, 2018
  5. Randall S. BeckerApr 5, 2018
  6. Olaf HeringApr 5, 2018
  7. Jeff KingApr 5, 2018
  8. Olaf HeringApr 6, 2018
  9. Jeff KingApr 6, 2018
  10. Rafael AscensaoApr 6, 2018
  11. Jeff KingApr 6, 2018
  12. astianApr 5, 2018
  13. astianApr 5, 2018

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.