Re: [Q] would it be bad to make /etc/gitconfig runtime configurable?
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 3, 2016, 11:06 UTC
- Message-ID
- <alpine.DEB.2.20.1610031303000.35196@virtualbox>
- In-Reply-To
- <20160927192539.ybooc34iodnzs2ab@sigill.intra.peff.net>
Hi,
On Tue, 27 Sep 2016, Jeff King wrote:
Show 12 quoted lines
> On Tue, Sep 27, 2016 at 10:05:37AM -0700, Junio C Hamano wrote: > > > The subject says it all. Would it be bad if we introduce an > > environment variable, GIT_SYSTEM_CONFIG=/etc/gitconfig, that names > > an alternative location of the system-wide configuration file? > > > > That would supersede/deprecate GIT_CONFIG_NOSYSTEM that we > > introduced primarily so that we can run our tests without getting > > affected by the configuration that happens to be effective on the > > host that the test is being run. > > I can't think of a reason it would be bad.
I cannot think of any reason right now, either, but my gut tells me that this needs to simmer a while in the backs of our minds, to give potential reasons a chance to come forward.
What would be the use case, BTW? IOW what would it solve that cannot already be solved by using XDG_CONFIG_HOME?
Ciao, Dscho