From: Junio C Hamano Date: Mon, 18 Dec 2017 16:55:35 GMT Subject: Re: Q: rational for $XDG_CONFIG_HOME/git/config to be "non global" or just a bug? Message-ID: In-Reply-To: <20171218142100.3mhshemnooc3sykv@hopa.kiewit.dartmouth.edu> Yaroslav Halchenko writes: > 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.