git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C Hamano
Message 8 of 8 in “feature request - implement a "GIT_AUTHOR_EMAIL" equivalent, but processed BEFORE .gitconfig”
  1. Nathan NeulingerMay 30, 2014
  2. Jonathan NiederMay 30, 2014
  3. Nathan NeulingerMay 30, 2014
  4. Junio C HamanoMay 30, 2014
  5. Nathan NeulingerMay 30, 2014
  6. Jeff KingMay 30, 2014
  7. Junio C HamanoMay 30, 2014
  8. Jeff KingJun 2, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.