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

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

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

From: Jari Aalto <hidden>
Date: 2016-06-15 22:48:08

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

Jari

[1] http://www.kernel.org/pub/software/scm/git/docs/git-clone.html

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

From: Ilari Liusvaara <hidden>
Date: 2016-06-15 22:48:08

On Sat, Jan 30, 2010 at 06:57:56PM +0200, Jari Aalto wrote:
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

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

From: Petr Baudis <hidden>
Date: 2016-06-15 22:48:08

On Sat, Jan 30, 2010 at 06:57:56PM +0200, Jari Aalto wrote:
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
But that's not an URL anymore. If you want to use ssh pathspec, write it
as a pathspec, not an URL. Just foo@example.com:/path works fine. ;-)

				Petr "Pasky" Baudis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help