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 <junio@pobox.com>
Date
Jan 25, 2008, 20:19 UTC
Message-ID
<7vir1h64k7.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200801252033.13142.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 5 quoted lines
> So this config variable is actually about _rewriting_ URLs, rather than
> having multiple _alternate_ URLs to fetch from. IMHO either the
> documentation above should be (re)written better (there is time, as we
> are in feature freeze), or the example mentioned above should be added
> (but where?).

I think Documentation/urls.txt would be a good candidate. Currently it talks only about non-nicknamed remotes, and is included only in clone and remote. This makes sense as their usage of urls.txt documentation is to talk about non-nicknamed forms only (obviously clone cannot talk about nicknames in a local repository that does not yet exist, and "remote add" needs a non-nicknamed form as well).

Documentation/urls.txt can be enhanced to say that once you have the remote.*.url and other configs, you can use its nickname to name a remote repository. Then it would become a good enough shape to be included in push/fetch/pull pages as well.

Previous: Jakub NarebskiNext: Daniel Barkalow
Message 8 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.