Re: [PATCH 1/2] Add possibility to store configuration in ~/.config/git/config file
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- May 26, 2012, 08:53 UTC
- Message-ID
- <vpq62bjnx14.fsf@bauges.imag.fr>
- In-Reply-To
- <1337975239-17169-1-git-send-email-nguyenhu@ensibm.imag.fr>
NGUYEN Huynh Khoi Nguyen <nguyenhu@ensimag.imag.fr> writes:
> + sprintf(config_path, "%s/.config/git/config", home);
It's not terribly important, but if we are to use something that looks like XDG, I'd rather have a real support for it. ~/.config/ is the default, but the spec http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html also define $XDG_CONFIG_HOME that may override the default and we may want to support $XDG_CONFIG_DIRS too.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/