Re: Q: rational for $XDG_CONFIG_HOME/git/config to be "non global" or just a bug?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 18, 2017, 16:55 UTC
- Message-ID
- <xmqqvah4nfg8.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20171218142100.3mhshemnooc3sykv@hopa.kiewit.dartmouth.edu>
Yaroslav Halchenko <yoh@onerussian.com> writes:
Show 7 quoted lines
> On Mon, 18 Dec 2017, Jeff King wrote: > >> To complete that abstraction it seems like reading via "--global" should >> read from both (in the same precedence order that normal config lookup >> uses). > > FWIW +1 from me on that ;)
FWIW I do not have problem with that endgame.
I wonder if anybody wants to get their hands dirty. It should be a quite straight-forward to split a helper (or three) out of the do_git_config_sequence() helper, but the interface from cmd_config() to call into config.c to read a specific "class" of config file is the same codepath as a single file, so a major part of this work will be to design how to extend the interface to do the limited "sequence" thing.