git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] urls.txt: document optional port specification in git URLS
@ 2009-02-04 11:51 Stefan Naewe
  2009-02-04 18:09 ` Junio C Hamano
       [not found] ` <20090205080913.GB27983@ultras>
  0 siblings, 2 replies; 9+ messages in thread
From: Stefan Naewe @ 2009-02-04 11:51 UTC (permalink / raw)
  To: git; +Cc: gitster, Stefan Naewe

Signed-off-by: Stefan Naewe <stefan.naewe@atlas-elektronik.com>
---
 Documentation/urls.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/urls.txt b/Documentation/urls.txt
index fa34c67..c74f00b 100644
--- a/Documentation/urls.txt
+++ b/Documentation/urls.txt
@@ -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/
-- 
1.6.1.2

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] urls.txt: document optional port specification in git URLS
  2009-02-04 11:51 [PATCH] urls.txt: document optional port specification in git URLS Stefan Naewe
@ 2009-02-04 18:09 ` Junio C Hamano
  2009-02-04 20:49   ` [PATCH v2] " Stefan Naewe
       [not found] ` <20090205080913.GB27983@ultras>
  1 sibling, 1 reply; 9+ messages in thread
From: Junio C Hamano @ 2009-02-04 18:09 UTC (permalink / raw)
  To: Stefan Naewe; +Cc: git, gitster

Stefan Naewe <stefan.naewe@atlas-elektronik.com> writes:

> Signed-off-by: Stefan Naewe <stefan.naewe@atlas-elektronik.com>
> ---
>  Documentation/urls.txt |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/urls.txt b/Documentation/urls.txt
> index fa34c67..c74f00b 100644
> --- a/Documentation/urls.txt
> +++ b/Documentation/urls.txt
> @@ -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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v2] urls.txt: document optional port specification in git URLS
  2009-02-04 18:09 ` Junio C Hamano
@ 2009-02-04 20:49   ` Stefan Naewe
  2009-02-04 20:53     ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Naewe @ 2009-02-04 20:49 UTC (permalink / raw)
  To: git; +Cc: gitster, Stefan Naewe

Signed-off-by: Stefan Naewe <stefan.naewe+git@gmail.com>
---
 Documentation/urls.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/urls.txt b/Documentation/urls.txt
index fa34c67..5355ebc 100644
--- a/Documentation/urls.txt
+++ b/Documentation/urls.txt
@@ -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/
-- 
1.6.1.2

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] urls.txt: document optional port specification in git URLS
  2009-02-04 20:49   ` [PATCH v2] " Stefan Naewe
@ 2009-02-04 20:53     ` Junio C Hamano
  2009-02-04 21:02       ` Stefan Näwe
  0 siblings, 1 reply; 9+ messages in thread
From: Junio C Hamano @ 2009-02-04 20:53 UTC (permalink / raw)
  To: Stefan Naewe; +Cc: git, gitster, Stefan Naewe

Stefan Naewe <stefan.naewe@googlemail.com> writes:

> Signed-off-by: Stefan Naewe <stefan.naewe+git@gmail.com>
> ---
>  Documentation/urls.txt |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/urls.txt b/Documentation/urls.txt
> index fa34c67..5355ebc 100644
> --- a/Documentation/urls.txt
> +++ b/Documentation/urls.txt
> @@ -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/

Do you know if these port specifications do actually work?  Just double
checking.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] urls.txt: document optional port specification in git URLS
  2009-02-04 20:53     ` Junio C Hamano
@ 2009-02-04 21:02       ` Stefan Näwe
  2009-02-04 21:05         ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Näwe @ 2009-02-04 21:02 UTC (permalink / raw)
  To: git

Junio C Hamano <gitster <at> pobox.com> writes:

> 
> 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/
> > +- 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.
> 

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] urls.txt: document optional port specification in git URLS
  2009-02-04 21:02       ` Stefan Näwe
@ 2009-02-04 21:05         ` Junio C Hamano
  0 siblings, 0 replies; 9+ messages in thread
From: Junio C Hamano @ 2009-02-04 21:05 UTC (permalink / raw)
  To: Stefan Näwe; +Cc: git

Stefan Näwe <stefan.naewe+git@gmail.com> writes:

> More testing needed ?

No, I just was curious.  Thanks for being thorough.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] urls.txt: document optional port specification in git URLS
       [not found] ` <20090205080913.GB27983@ultras>
@ 2009-02-05  8:36   ` Nicolas Sebrecht
  2009-02-05  9:12     ` Marius Storm-Olsen
  2009-02-05  8:41   ` Stefan Naewe
  1 sibling, 1 reply; 9+ messages in thread
From: Nicolas Sebrecht @ 2009-02-05  8:36 UTC (permalink / raw)
  To: git


On Wed, Feb 04, 2009 at 12:51:35PM +0100, Stefan Naewe wrote:

>  Documentation/urls.txt |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

[...]

> +- 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 ?

-- 
Nicolas Sebrecht

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] urls.txt: document optional port specification in git URLS
       [not found] ` <20090205080913.GB27983@ultras>
  2009-02-05  8:36   ` [PATCH] " Nicolas Sebrecht
@ 2009-02-05  8:41   ` Stefan Naewe
  1 sibling, 0 replies; 9+ messages in thread
From: Stefan Naewe @ 2009-02-05  8:41 UTC (permalink / raw)
  To: Nicolas Sebrecht; +Cc: git

(Please don't reply to me only, CC the mailing list)

On 2/5/2009 9:09 AM, Nicolas Sebrecht wrote:
> On Wed, Feb 04, 2009 at 12:51:35PM +0100, Stefan Naewe wrote:
> 
>>  Documentation/urls.txt |    4 ++--
>>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> [...]
> 
>> +- 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
-- 
----------------------------------------------------------------
/dev/random says: Useless Invention: Fireproof kindling.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] urls.txt: document optional port specification in git URLS
  2009-02-05  8:36   ` [PATCH] " Nicolas Sebrecht
@ 2009-02-05  9:12     ` Marius Storm-Olsen
  0 siblings, 0 replies; 9+ messages in thread
From: Marius Storm-Olsen @ 2009-02-05  9:12 UTC (permalink / raw)
  To: Nicolas Sebrecht; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 871 bytes --]

Nicolas Sebrecht said the following on 05.02.2009 09:36:
> On Wed, Feb 04, 2009 at 12:51:35PM +0100, Stefan Naewe wrote:
>> +- 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/

-- 
.marius [@trolltech.com]
'if you know what you're doing, it's not research'


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-02-05  9:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-04 11:51 [PATCH] urls.txt: document optional port specification in git URLS Stefan Naewe
2009-02-04 18:09 ` Junio C Hamano
2009-02-04 20:49   ` [PATCH v2] " Stefan Naewe
2009-02-04 20:53     ` Junio C Hamano
2009-02-04 21:02       ` Stefan Näwe
2009-02-04 21:05         ` Junio C Hamano
     [not found] ` <20090205080913.GB27983@ultras>
2009-02-05  8:36   ` [PATCH] " Nicolas Sebrecht
2009-02-05  9:12     ` Marius Storm-Olsen
2009-02-05  8:41   ` Stefan Naewe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).