Re: [PATCH] config: read system-wide defaults from /etc/gitconfig
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 14, 2007, 16:30 UTC
- Message-ID
- <7vfy98snus.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0702141246160.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 7 quoted lines
> The settings in /etc/gitconfig can be overridden in ~/.gitconfig, > which in turn can be overridden in .git/config. > > Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> > --- > ... > Voilà.
I knew this can be done, and you are capable of doing this, but I was wondering if it is a good thing to do in the first place.
Site-wide configuration for options that are potentially compatibility-breaking is a bad idea on a multi-user machines, and it was certainly the case back when our machines hosted many diverse set of people.
But these days many machines are practically single-user and many more are owned by a single group/project that share the same policy. So in such a setting, /etc/gitconfig might not be too bad.