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

Re: FEATURE REQUEST: Allow SSH style URLS (with extra colon)

From
ILIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Date
Jan 30, 2010, 17:27 UTC
Message-ID
<20100130172730.GA28865@Knoppix>
In-Reply-To
<87tyu3cyy3.fsf@jondo.cante.net>
On Sat, Jan 30, 2010 at 06:57:56PM +0200, Jari Aalto wrote:
Show 16 quoted lines
> 
> According to git-clone[1] the SSH protocol is specied as:
> 
>     ssh://[user@]host.xz[:port]/path
> 
> It woudl be nice if the ":" were allowed, so that the familiar SSH style
> patch notation could be used, making the spec:
> 
>     ssh://[user@]host.xz[:[port]]/path
> 
> An example:
> 
>     ssh://foo@examplecom:/path
>                         |
>                         Allowed
> 
I would use:
ssh://[user@]host.xz[:port][:]/path

Since empty port isn't allowed, this grammar is uniquely parseable, and would allow specifying port too (if you don't need to specify it, you could just use the scp syntax)[1].

[1] Of course 'ssh://[user@]host.xz[:port]/~/path' works too..
-Ilari
Previous: Jari AaltoNext: Petr Baudis
Message 2 of 4 in “FEATURE REQUEST: Allow SSH style URLS (with extra colon)”
  1. Jari AaltoJan 30, 2010
  2. Ilari LiusvaaraJan 30, 2010
  3. Petr BaudisJan 30, 2010
  4. Junio C HamanoJan 30, 2010

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.