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

Re: [PATCH] Add support for host aliases in config files

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 25, 2008, 19:01 UTC
Message-ID
<7vabmt7mrr.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<m3fxwlagbu.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 5 quoted lines
> From this I could not get how those configuration are meant to be
> used. Perhaps some usage example?
>
> BTW. wouldn't the same be solved better by enabling remote.<name>.url
> to be multi-valued, first working for fetch, all URLs for push?

I think that is already the case. "git-remote" currently has an annoying bug I haven't bothered to look into that makes the command complain when remote.$nick.url has more than one values. Worse, it complains _twice_ (or N-1 times for a remote that has N URLs).

        : gitster git.git/master; git remote
        Warning: more than one remote.builders.url
        Warning: more than one remote.builders.url
        builders
        gfi
        git-gui
        gitk
        git-p4
        git-svn
        jbf-um
        ko
        ko-private
        mingw
        origin
        repo
        spearce.git
        wing-fc5
        wing-fc7
        wing-fc8

Here, "builders" remote has 3 URLs because I wanted to use it to push to 3 machines on which I build binary releases.

Previous: Jakub NarebskiNext: Daniel Barkalow
Message 3 of 10 in “Add support for host aliases in config files”
  1. Add support for host aliases in config filesDaniel Barkalow, Jan 25, 2008
  2. Jakub NarebskiJan 25, 2008
  3. Junio C HamanoJan 25, 2008
  4. Daniel BarkalowJan 25, 2008
  5. Jakub NarebskiJan 25, 2008
  6. Daniel BarkalowJan 25, 2008
  7. Jakub NarebskiJan 25, 2008
  8. Junio C HamanoJan 25, 2008
  9. Daniel BarkalowJan 25, 2008
  10. Jakub NarebskiJan 25, 2008

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.