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

Feature Request: Support logic or shell execution to control values in .gitconfig

From
MMMorgan McClure <mcclure.morgan@gmail.com>
Date
Aug 8, 2013, 15:09 UTC
Message-ID
<CANY-LFJZazieg-7gLq1=pv=nkED81Gck4=95ffgZ6tGVgX5ffg@mail.gmail.com>

I sync all my dot files (including .gitconfig) among several machines and it's currently not possible to put conditional logic in many fields (any that aren't considered strings to be executed as shell commands ie aliases, editor, etc).

My specific use case is the email address. Normally I want my email address to read: mcclurem@$HOSTNAME <mcclure.morgan@gmail.com>

I use this to track which machine I'm committing from etc.

I propose using something reminiscent of bash syntax, either: value = $(SOMETEXTTOEXECUTE)

or
value = `SOMETEXTTOEXECUTE`
Is this a feature others could get behind?
-Morgan McClure
Next: Matthieu Moy
Message 1 of 4 in “Feature Request: Support logic or shell execution to control values in .gitconfig”
  1. Morgan McClureAug 8, 2013
  2. Matthieu MoyAug 8, 2013
  3. Greg TroxelAug 8, 2013
  4. Jonathan NiederAug 10, 2013

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.