Re: [RFC] Possibility to choose ~/.config/git/config instead of ~/.gitconfig

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [RFC] Possibility to choose ~/.config/git/config instead of ~/.gitconfig

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:54

Jonathan Nieder [off-list ref] writes:
quoted
So it is exactly "I do not want ~/.gitconfig, I want ~/.config/git", no?

That is something distro should be able to decide.
Except that there is nothing distro-specific about it.  Do you really
want the config file to have a different name depending on whether one
is using Debian, Fedora,...
Not me personally.  But distros want to do that, it's their choice.
Besides, with my distro package maintainer hat on, I can tell you that
switching the config file to ~/.config/git and not reading
~/.gitconfig would be a complete nonstarter.
Absolutely.  So don't choose to deliberately introduce backward
incompatibliity.  Problem solved.

Why is it bad to keep using ~/.gitconfig in the first place?  The UNIX
convention to exclude names that begin with dot is not working for you?

Re: [RFC] Possibility to choose ~/.config/git/config instead of ~/.gitconfig

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:53:54

Junio C Hamano wrote:
Why is it bad to keep using ~/.gitconfig in the first place?  The UNIX
convention to exclude names that begin with dot is not working for you?
Ok, now you're making more sense. :)

I don't think anyone was proposing dropping support for .gitconfig.
But:

Any patch to add support for ~/.config/git should of course take care
to include a rationale that answers this question.  (I am guessing
that putting all user git configuration in one directory is part of
the goal, and separating temporary files like ~/.fontconfig/*.cache*
from configuration files like ~/.mutt/muttrc is another part.)

Ciao,
Jonathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help