Re: [RFC] Possibility to choose ~/.config/git/config instead of ~/.gitconfig
- From
Heiko Voigt <hvoigt@hvoigt.net>
- Date
- May 26, 2012, 10:59 UTC
- Message-ID
- <20120526105936.GA37540@book.hvoigt.net>
- In-Reply-To
- <CAMP44s32GKrmXDND3_iO6CTOgHTfeuBeXYEOjcET5bBZ067pFQ@mail.gmail.com>
Hi,
On Sat, May 26, 2012 at 12:45:52PM +0200, Felipe Contreras wrote:
Show 14 quoted lines
> On Fri, May 25, 2012 at 6:15 PM, <nguyenhu@minatec.inpg.fr> wrote: > > > As you know, git stores its configuration in ~/.gitconfig file and in other > > hidden files at the root of the user's directory. > > > > We would like to have a configuration directory instead of all these > > configuration files by following the XDG specification because: > > - not a lot of hidden files at the root, so better view > > - one directory per software in ~/.config > > > > We would like to give to users the possibility to store configuration in > > ~/.config/git/config file. > > I like this, but it shouldn't be "~/.config", it should be $XDG_CONFIG_HOME.
If we do that what about a fallback to .config for operating systems that do not have XDG? E.g. Git for Windows would then also be able to benefit from that.
Cheers Heiko