Re: feature request - implement a "GIT_AUTHOR_EMAIL" equivalent, but processed BEFORE .gitconfig
- From
Jeff King <peff@peff.net>
- Date
- Jun 2, 2014, 06:59 UTC
- Message-ID
- <20140602065947.GC27254@sigill.intra.peff.net>
- In-Reply-To
- <xmqq1tvb7xw6.fsf@gitster.dls.corp.google.com>
On Fri, May 30, 2014 at 02:35:37PM -0700, Junio C Hamano wrote:
Show 8 quoted lines
> Nathan's installation can set a "GIT_MYSELF" and then have something > like this in the shared $HOME/.gitconfig > > [include] > path = /usr/local/users/$GIT_MYSELF/ident > > we could even make the whole thing fail when GIT_MYSELF is not set > but I haven't thought things through ;-)
Yeah, that is something I considered[1] when writing the initial include.path implementation. Something like:
[include] path = .gitconfig-$HOSTNAME
could be potentially useful. But I punted at the time to wait for somebody to actually ask for it. If somebody wanted to implement it, I don't see a reason to avoid it.
-Peff
[1] http://article.gmane.org/gmane.comp.version-control.git/190196