Re: [RFC] Possibility to choose ~/.config/git/config instead of ~/.gitconfig
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- May 25, 2012, 19:35 UTC
- Message-ID
- <20120525193507.GA5184@burratino>
- In-Reply-To
- <vpqvcjknjo0.fsf@bauges.imag.fr>
Matthieu Moy wrote:
> That's another good thing with XDG (~/.config Vs ~/.cache/ for example), > but I don't think Git would have anything user-wide that would not be > configuration.
Of course, but your home directory that you read with "ls -A" does. Putting configuration in ~/.config makes it easier to find amid all that noise.
That said, as Junio wrote before[1]:
> It is not _too_ bad to treat ~/.gitconfig specially and support reading
> from ~/.$SOMEGITTTYNAME/{excludes,attributes} files.That's what vim does --- its main configuration file is ~/.vimrc, and there are also some supporting files in ~/.config/vim/.
Wouldn't that be a good place to start?
Jonathan
[1] http://thread.gmane.org/gmane.comp.version-control.git/133343/focus=135921