From: Moe Date: Sat, 19 Dec 2009 03:06:08 GMT Subject: Re: [PATCH] Introduce the GIT_CONFIG_EXTRA environment variable Message-ID: <4B2C4320.6060007@signalbeam.net> In-Reply-To: <20091219020947.GB10687@spearce.org> Shawn O. Pearce wrote: > Miklos Vajna wrote: >> This is like GIT_CONFIG but it is not read instead of .git/config, but >> in addtition to it. > > What file does `git config --add` modify? Should we be able to > modify the GIT_CONFIG_EXTRA file? >From my use-case corner: Yes, this would basically be used to divert ~/.gitconfig and should behave in all the same ways. > What order is GIT_CONFIG_EXTRA applied in relative to other files > that git config would also have read? This is up to Miklos to answer but again from my use-case angle it would make the most sense to read the usual config files first and GIT_CONFIG_EXTRA last - that way the user config gets the last word in terms of overriding global and repository defaults. And btw, thanks for the fast action Miklos! Kind regards, Moe