From: Victor Engmark Date: Wed, 30 May 2012 11:49:37 GMT Subject: Re: [RFC] Possibility to have a per-user config directory Message-ID: In-Reply-To: <20120530015035.Horde.XJPMC3wdC4BPxWDLkXMByVA@webmail.minatec.grenoble-inp.fr> On Wed, May 30, 2012 at 1:50 AM, wrote: > Patch for writing: > Git would write its configuration in $XDG_CONFIG_HOME/git/config file if: > - this file exists, > - and ~/.gitconfig file doesn't. > Otherwise git would write its configuration in ~/.gitconfig as usual. Minor suggestion: Write to $XDG_CONFIG_HOME/git/config if: - $XDG_CONFIG_HOME/git exists (and therefore is planned for use even if there is no config file within) - [etc. as before] Cheers, Victor