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

[RFC] Identify where a Git config is defined

From
Lars Schneider <larsxschneider@gmail.com>
Date
Feb 2, 2016, 09:27 UTC
Message-ID
<3226E251-73F9-4410-84DE-49C8FFAD92EB@gmail.com>
Hi,
Using "git config --list" shows me all configs but sometimes I have a hard time to figure out where a certain config is defined. This is especially true on Windows as I found the system config in various places. I wonder if other people would find it useful to enable something like "git config --list --print-source" where every config value is printed with the file where it originates from.
If I read the source correctly this would mean I would need to change "config_fn_t" to pass not only key and value but also the config source file in addition. Since "config_fn_t" is used in many places this would be a big change that probably is not worth the effort?!
Alternatively I was thinking about "git config --print-source-files" to print all config files that Git would parse. This would already help to find the configs and would probably be a smaller change.
Thoughts?

Thanks, Lars

Next: Jeff King
Message 1 of 3 in “[RFC] Identify where a Git config is defined”
  1. Lars SchneiderFeb 2, 2016
  2. Jeff KingFeb 2, 2016
  3. Jeff KingFeb 2, 2016

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.