Re: [ANNOUNCE] Git 1.6.5.5
- From
Sergio <sergio.callegari@gmail.com>
- Date
- Dec 6, 2009, 13:47 UTC
- Message-ID
- <loom.20091206T143330-71@post.gmane.org>
- In-Reply-To
- <7vtyw4il13.fsf@alter.siamese.dyndns.org>
> * In configuration files, a few variables that name paths can begin with > ~/ and ~username/ and they are expanded as expected. This is not a > bugfix but 1.6.6 will have this and without backporting users cannot > easily use the same ~/.gitconfig across versions.
Sorry if posting as a reply to the announcement is improper. However I am noticing that some kind of shell-like expansion is now allowed in the config file, wrt home directories, and my wish is somehow related to it.
I wonder if it could be possible in future releases to expand also $HOSTNAME in fetch/push specs.
The use case is the following. Working on more than one machine (e.g. a laptop A and a desktop B) you might need to periodically push to a server C and like to share the same config on both machines. Having $HOSTNAME expansion, whatever machine you push from, you can say git push C and have the branches go on remote/A or remote/B automatically on the server.
Sergio