urls.txt: document optional port specification in git URLS
PATCH 1/1 urls.txt: document optional port specification in git URLS
--- Documentation/urls.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Documentation/urls.txt +2 -2
@@ -8,8 +8,8 @@ to name the remote repository: - rsync://host.xz/path/to/repo.git/ - http://host.xz/path/to/repo.git/ - https://host.xz/path/to/repo.git/ -- git://host.xz/path/to/repo.git/ -- git://host.xz/~user/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/~user/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
Signature · 1 line
1.6.1.2
A message that is not in the archive (sent off-list or not yet received): 20090205080913.GB27983@ultras
(Please don't reply to me only, CC the mailing list)
Quoted 7 lines · Nicolas Sebrecht
Quoted 2 lines · Stefan Naewe
Documentation/urls.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)[...]
Quoted 7 lines
Quoted 5 lines
+- git://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/~user/path/to/repo.git/- ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/I did not understood. To what does '{startsb}' and '{endsb}' refer ?
Look at the generated documentation.
Regards,
Stefan
Signature · 2 lines
---------------------------------------------------------------- /dev/random says: Useless Invention: Fireproof kindling.
Quoted 2 lines · Stefan Naewe
Documentation/urls.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
[...]
Quoted 5 lines
+- git://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/~user/path/to/repo.git/- ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
I did not understood. To what does '{startsb}' and '{endsb}' refer ?
Signature · 1 line
Nicolas Sebrecht
Nicolas Sebrecht said the following on 05.02.2009 09:36:
Quoted 8 lines · Stefan Naewe
Quoted 5 lines
+- git://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/~user/path/to/repo.git/- ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/I did not understood. To what does '{startsb}' and '{endsb}' refer ?
Commands for the documentation tool
{startsb} = Start/Left Square Bracket
{endsb} = End/Right Square Bracket
so, you'll end up seeing
- git://host.xz[:port]/path/to/repo.git/
- git://host.xz[:port]/~user/path/to/repo.git/
Signature · 2 lines
.marius [@trolltech.com] 'if you know what you're doing, it's not research'
Quoted 10 lines · Stefan Naewe
Signed-off-by Stefan Naewe <[email protected]>--- Documentation/urls.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)Documentation/urls.txt +0
-0
Documentation/urls.txt to name the remote repository: · line 15
Quoted 10 lines
Documentation/urls.txt +2
-2@@ -8,8 +8,8 @@ to name the remote repository: - rsync://host.xz/path/to/repo.git/ - http://host.xz/path/to/repo.git/ - https://host.xz/path/to/repo.git/ -- git://host.xz/path/to/repo.git/ -- git://host.xz/~user/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/~user/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
Hmph, I wonder if we want that for http:// and https://, too.
PATCH v2 1/1 urls.txt: document optional port specification in git URLS
--- Documentation/urls.txt | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
Documentation/urls.txt +4 -4
@@ -6,10 +6,10 @@ to name the remote repository: =============================================================== - rsync://host.xz/path/to/repo.git/ -- http://host.xz/path/to/repo.git/ -- https://host.xz/path/to/repo.git/ -- git://host.xz/path/to/repo.git/ -- git://host.xz/~user/path/to/repo.git/ +- http://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- https://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/~user/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
Signature · 1 line
1.6.1.2
Quoted 14 lines · Stefan Naewe
Signed-off-by Stefan Naewe <[email protected]>--- Documentation/urls.txt | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)Documentation/urls.txt +0
-1@@ -6,10 +6,10 @@ to name the remote repository: =============================================================== - rsync://host.xz/path/to/repo.git/ -- http://host.xz/path/to/repo.git/
Documentation/urls.txt to name the remote repository: · line 15
Quoted 10 lines
Documentation/urls.txt +4
-3-- https://host.xz/path/to/repo.git/ -- git://host.xz/path/to/repo.git/ -- git://host.xz/~user/path/to/repo.git/ +- http://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- https://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/~user/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
Do you know if these port specifications do actually work? Just double checking.
Quoted 17 lines · Junio C Hamano <gitster <at> pobox.com> writes:
Quoted 6 lines · Stefan Naewe <stefan.naewe <at> googlemail.com> writes:
===============================================================
- rsync://host.xz/path/to/repo.git/
-- http://host.xz/path/to/repo.git/
-- https://host.xz/path/to/repo.git/
--git://host.xz/path/to/repo.git/
--git://host.xz/~user/path/to/repo.git/Quoted 7 lines
+- http://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- https://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/path/to/repo.git/ +- git://host.xz{startsb}:port{endsb}/~user/path/to/repo.git/- ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/
- ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
Quoted 3 lines
Do you know if these port specifications do actually work? Just double checking.
A quick test with 'netcat':
In xterm 1:
$ nc -l -p 8080
In xterm 2:
$ git clone http://localhost:8080/foo/bar/baz.git
Back in xterm 1 I get:
GET /foo/bar/baz.git/info/refs HTTP/1.1
User-Agent: git/1.6.1.2
Host: localhost:8080
Accept: */*
More testing needed ?
Regards,
Stefan
Quoted 1 line · Stefan Näwe
More testing needed ?
No, I just was curious. Thanks for being thorough.