git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Feature Request: Support logic or shell execution to control values in .gitconfig
@ 2013-08-08 15:09 Morgan McClure
  2013-08-08 15:23 ` Matthieu Moy
  0 siblings, 1 reply; 4+ messages in thread
From: Morgan McClure @ 2013-08-08 15:09 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-10 20:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08 15:09 Feature Request: Support logic or shell execution to control values in .gitconfig Morgan McClure
2013-08-08 15:23 ` Matthieu Moy
2013-08-08 15:47   ` Greg Troxel
2013-08-10 20:19   ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).