git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Identify where a Git config is defined
@ 2016-02-02  9:27 Lars Schneider
  2016-02-02 10:15 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Schneider @ 2016-02-02  9:27 UTC (permalink / raw)
  To: Git Users

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-02 10:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-02  9:27 [RFC] Identify where a Git config is defined Lars Schneider
2016-02-02 10:15 ` Jeff King
2016-02-02 10:32   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).