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:
If I understand correctly, the proposal that started this thread was
to give people a chance to tidy their HOME directory by moving
personal git configuration under ~/.config/git/.  
So it is exactly "I do not want ~/.gitconfig, I want ~/.config/git", no?

That is something distro should be able to decide.

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:
Jonathan Nieder [off-list ref] writes:
quoted
If I understand correctly, the proposal that started this thread was
to give people a chance to tidy their HOME directory by moving
personal git configuration under ~/.config/git/.  
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, Mac OS X, Gentoo, one of the various builds of
git on Windows, Solaris, ...?

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.  That would mean that the
existing user configuration for everyone would just seem to disappear.

Once the code to read both files is written, why would one want that
to be distro-specific and not something shared?

Hoping that clarifies a little,
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