Feature Request: Support logic or shell execution to control values in .gitconfig
- From
- Morgan 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