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

Re: [PATCH 2/2] Add support for url aliases in config files

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 21, 2008, 02:19 UTC
Message-ID
<76718490802201819g6e2662afjdcbbacadb2521106@mail.gmail.com>
In-Reply-To
<alpine.LFD.1.00.0802201735030.7833@woody.linux-foundation.org>

On Wed, Feb 20, 2008 at 8:47 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:

Show 24 quoted lines
>  So I think it really boils down to the fact that you want to "rewrite" the
>  thing. Not aliases, not "also known as", but you're logically really
>  looking for something like
>
>         [access "git://git.kernel.org/*"]
>                 proxy = proxy-program
>                 url = "ssh://master.kernel.org/*"
>
>  which admittedly looks rather strange too, but at the same time it does
>  make sense from a "what do we really want to do?" standpoint.
>
>  Of course, in this case Daniel didn't actually do that "proxy" part, but I
>  think the argument that we should try to make the config file syntax
>  describe what the user wants to do is still very true. So skip that
>  "proxy" part (maybe somebody wants to do that too some day), and leave the
>
>         [access "original"]
>                 url = "rewritten"
>
>  kind of syntax.
>
>  (And no, I'm not at all married to the "access" and "url" parts - I don't
>  care. I'm just saying that syntax should be tied to what people want to
>  do, not anything else.
Shrug:
[core]
  rewriterule = <from> <to>
  ; ...
If <from> or <to> contain whitespace then you have to use %20 or quotes.
(There is already proxy support elsewhere in the config.)
I think I'm done suggesting paint colors. :-)
j.
Previous: Linus TorvaldsNext: Daniel Barkalow
Message 12 of 22 in “Add support for url aliases in config files”
  1. 2/2 Add support for url aliases in config filesDaniel Barkalow, Feb 20, 2008
  2. Junio C HamanoFeb 20, 2008
  3. Daniel BarkalowFeb 20, 2008
  4. Junio C HamanoFeb 20, 2008
  5. Jay SoffianFeb 20, 2008
  6. Daniel BarkalowFeb 20, 2008
  7. しらいしななこFeb 20, 2008
  8. Johannes SchindelinFeb 20, 2008
  9. Junio C HamanoFeb 21, 2008
  10. Jay SoffianFeb 21, 2008
  11. Linus TorvaldsFeb 21, 2008
  12. Jay SoffianFeb 21, 2008
  13. Daniel BarkalowFeb 21, 2008
  14. Junio C HamanoFeb 21, 2008
  15. Junio C HamanoFeb 25, 2008
  16. Daniel BarkalowFeb 25, 2008
  17. Junio C HamanoFeb 25, 2008
  18. Daniel BarkalowFeb 25, 2008
  19. Jon LoeligerFeb 21, 2008
  20. Jay SoffianFeb 20, 2008
  21. Junio C HamanoFeb 20, 2008
  22. Jay SoffianFeb 20, 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.