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

Re: [PATCH] Documentation: Fix ssh:// URLs in generated documentation

From
Junio C Hamano <junkio@cox.net>
Date
Jul 14, 2006, 21:46 UTC
Message-ID
<7vk66foo5u.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<1152872688966-git-send-email-alp@atoker.com>
Alp Toker <alp@atoker.com> writes:
> Commit c3f17061be95de3498449a548e93883aebff23d6 was causing warnings
> during doc generation due to bad asciidoc markup.
It seems that the '+++' quoting does not seem to work with older asciidoc.

However, I just noticed that what the text talks about is wrong to begin with (not your fault):

Show 17 quoted lines
> +	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/
> +	ssh://[user@]host.xz/path/to/repo.git/
> +	ssh://[user@]host.xz/~user/path/to/repo.git/
> +	ssh://[user@]host.xz/~/path/to/repo.git
>  
>  SSH Is the default transport protocol and also supports an
>  scp-like syntax.  Both syntaxes support username expansion,
>  as does the native git protocol. The following three are
>  identical to the last three above, respectively:
>  
> +	host.xz:/path/to/repo.git/
> +	host.xz:~user/path/to/repo.git/
> +	host.xz:path/to/repo.git

So how about something like this instead, until people have up to date asciidoc?

diff --git a/Documentation/urls.txt b/Documentation/urls.txt
index 93378d2..a5519e5 100644
--- a/Documentation/urls.txt
+++ b/Documentation/urls.txt
@@ -10,12 +10,12 @@ to name the remote repository:
 - https://host.xz/path/to/repo.git/
 - git://host.xz/path/to/repo.git/
 - git://host.xz/~user/path/to/repo.git/
-- ssh://+++[user@+++]host.xz/path/to/repo.git/
-- ssh://+++[user@+++]host.xz/~user/path/to/repo.git/
-- ssh://+++[user@+++]host.xz/~/path/to/repo.git
+- ssh://host.xz/path/to/repo.git/
+- ssh://host.xz/~user/path/to/repo.git/
+- ssh://host.xz/~/path/to/repo.git
 ===============================================================
 
-SSH Is the default transport protocol and also supports an
+SSH is the default transport protocol and also supports an
 scp-like syntax.  Both syntaxes support username expansion,
 as does the native git protocol. The following three are
 identical to the last three above, respectively:
@@ -26,6 +26,10 @@ identical to the last three above, respe
 - host.xz:path/to/repo.git
 ===============================================================
 
+In addition, you can specify the name of the user to log in as
+by saying `ssh://user@host.xz/\...` and `user@host.xz:\...` for
+the SSH protocol.
+
 To sync with a local directory, use:
 
 ===============================================================
Previous: Alp TokerNext: Jonas Fonseca
Message 4 of 12 in “Revert "Documentation: Fix ssh://[user@]host.xz URL"”
  1. Revert "Documentation: Fix ssh://[user@]host.xz URL"Alp Toker, Jul 14, 2006
  2. Documentation: Fix ssh:// URLs in generated documentationAlp Toker, Jul 14, 2006
  3. Documentation: Minor capitalization typofixAlp Toker, Jul 14, 2006
  4. Junio C HamanoJul 14, 2006
  5. urls.txt: Use substitution to escape square bracketsJonas Fonseca, Jul 14, 2006
  6. Junio C HamanoJul 14, 2006
  7. Alp TokerJul 14, 2006
  8. Junio C HamanoJul 14, 2006
  9. Alp TokerJul 14, 2006
  10. urls.txt: Use substitution to escape square bracketsJunio C Hamano, Jul 14, 2006
  11. Alp TokerJul 15, 2006
  12. Make asciidoc related rules depend on asciidoc.confJonas Fonseca, Jul 15, 2006

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.