All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: Junio C Hamano <gitster@pobox.com>
Cc: Jonathan Nieder <jrnieder@gmail.com>,
	Hilco Wijbenga <hilco.wijbenga@gmail.com>,
	nguyenhu@minatec.inpg.fr, git@vger.kernel.org,
	Valentin DUPERRAY <Valentin.Duperray@phelma.grenoble-inp.fr>,
	Franck JONAS <Franck.Jonas@phelma.grenoble-inp.fr>,
	Lucien KONG <Lucien.Kong@phelma.grenoble-inp.fr>,
	Thomas NGUY <Thomas.Nguy@phelma.grenoble-inp.fr>,
	Huynh Khoi Nguyen NGUYEN 
	<Huynh-Khoi-Nguyen.Nguyen@phelma.grenoble-inp.fr>
Subject: Re: [RFC] Possibility to choose ~/.config/git/config instead of ~/.gitconfig
Date: Fri, 25 May 2012 21:13:42 +0200	[thread overview]
Message-ID: <vpq396ooyzd.fsf@bauges.imag.fr> (raw)
In-Reply-To: <7vobpcrstn.fsf@alter.siamese.dyndns.org> (Junio C. Hamano's message of "Fri, 25 May 2012 11:58:28 -0700")

Junio C Hamano <gitster@pobox.com> writes:

>> 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.

It doesn't have to be backward incompatible. The proposal is to _allow_
users to have a ~/.config/git/config file, not to _force_ them to have
one.

If Git reads both files, then ~/.gitconfig lovers can continue with it,
and are not affected.

> 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?

The "It's a convention" argument doesn't work here. XDG is also a rather
widely used convention these days, so "why not follow the convention"
can be used both in favor of ~/.gitconfig or ~/.config/git/config.

~/.gitconfig alone would not be a huge problem, although personnally
hate it already. I like to version my handwritten configuration files,
but I don't want my $HOME to be a git repository. I already have a
~/etc/ directory with my configuration files in it, and ~/.gitconfig is
basically a symbolic link. I wouldn't have to re-structure my $HOME if I
had a structured and standard configuration directory like ~/.config.

Now, the real issue is that we're starting to have several user-wide
config files (core.excludesfile, core.attributesfile, maybe one day
we'll want others like user-wide hooks?), and having multiple
~/.git<something> really feels wrong. Just like we have /etc/<file> for
applications that have only one configuration file, and /etc/<directory>
for ones who need more, it seems sensible to have a configuration
directory for a user, not just a set of configuration files in $HOME.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

  reply	other threads:[~2012-05-25 19:14 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-25 16:15 [RFC] Possibility to choose ~/.config/git/config instead of ~/.gitconfig nguyenhu
2012-05-25 17:01 ` Jonathan Nieder
2012-05-25 17:29   ` Matthieu Moy
2012-05-25 17:44     ` Jonathan Nieder
2012-05-25 17:31 ` Hilco Wijbenga
2012-05-25 17:42   ` Jonathan Nieder
2012-05-25 17:47     ` Hilco Wijbenga
2012-05-25 18:12       ` [PATCH] config doc: remove confusion about relative GIT_DIR from FILES section Jonathan Nieder
2012-05-25 20:06         ` Jeff King
2012-05-25 18:20       ` [RFC] Possibility to choose ~/.config/git/config instead of ~/.gitconfig Junio C Hamano
2012-05-25 17:54     ` Matthieu Moy
2012-05-25 20:11       ` Jeff King
2012-05-25 18:13   ` Junio C Hamano
2012-05-25 18:25     ` Jonathan Nieder
2012-05-25 18:34       ` Junio C Hamano
2012-05-25 18:44         ` Jonathan Nieder
2012-05-25 18:58           ` Junio C Hamano
2012-05-25 19:13             ` Matthieu Moy [this message]
2012-05-25 19:17             ` Jonathan Nieder
2012-05-25 19:29               ` Matthieu Moy
2012-05-25 19:35                 ` Jonathan Nieder
2012-05-25 19:37                   ` Jonathan Nieder
2012-05-25 19:39                   ` Matthieu Moy
2012-05-25 19:01           ` Matthieu Moy
2012-05-26 10:45 ` Felipe Contreras
2012-05-26 10:59   ` Heiko Voigt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vpq396ooyzd.fsf@bauges.imag.fr \
    --to=matthieu.moy@grenoble-inp.fr \
    --cc=Franck.Jonas@phelma.grenoble-inp.fr \
    --cc=Huynh-Khoi-Nguyen.Nguyen@phelma.grenoble-inp.fr \
    --cc=Lucien.Kong@phelma.grenoble-inp.fr \
    --cc=Thomas.Nguy@phelma.grenoble-inp.fr \
    --cc=Valentin.Duperray@phelma.grenoble-inp.fr \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=hilco.wijbenga@gmail.com \
    --cc=jrnieder@gmail.com \
    --cc=nguyenhu@minatec.inpg.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.