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

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
Previous: Junio C Hamano
Message 2 of 2 in “[ANNOUNCE] Git 1.6.5.5”
  1. Junio C HamanoDec 6, 2009
  2. SergioDec 6, 2009

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.