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

Re: BUG: git config --global --get ITEM ignores ~/.config/git/config when ~/.gitconfig is present

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 15, 2023, 16:19 UTC
Message-ID
<xmqqedqq296u.fsf@gitster.g>
In-Reply-To
<kl6ly1oze7wb.fsf@chooglen-macbookpro.roam.corp.google.com>
Glen Choo <chooglen@google.com> writes:
> I mostly agree, except that I think we should leverage the existing
> "ignore" flags in "config_options".
Excellent.

The option, e.g. --system, does not have to translate to "let's see which file does the option mean, OK, it is /etc/gitconfig so do the same thing as --file /etc/gitconfig". Instead, we can treat it as "do the usual config sequence but ignore everything but the system config". And that would handle a class like --global that can have more than one input source in a lot more natural way.

Very good.
Previous: Glen Choo
Message 7 of 7 in “BUG: git config --global --get ITEM ignores ~/.config/git/config when ~/.gitconfig is present”
  1. Jade LovelaceFeb 11, 2023
  2. Junio C HamanoFeb 11, 2023
  3. Jade LovelaceFeb 11, 2023
  4. Junio C HamanoFeb 11, 2023
  5. Junio C HamanoFeb 11, 2023
  6. Glen ChooFeb 15, 2023
  7. Junio C HamanoFeb 15, 2023

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.