[PATCH 3/5] Documentation/remote-helpers: Add invocation section

Previous thread: [PATCH 2/5] Documentation/urls: Rewrite to accomodate <transport>::<address> by Ramkumar Ramachandra on Saturday, April 17, 2010 - 5:54 pm. (9 messages)

Next thread: [PATCH 4/5] Fixup: Second argument may be any arbitrary string by Ramkumar Ramachandra on Saturday, April 17, 2010 - 5:56 pm. (1 message)
From: Ramkumar Ramachandra
Date: Saturday, April 17, 2010 - 5:55 pm

Add an 'Invocation' section to specify what the command line arguments
mean. Also include a link to git-remote in the 'See Also' section.

Signed-off-by: Ramkumar Ramachandra &lt;artagnon@gmail.com&gt;
---
 Documentation/git-remote-helpers.txt |   35 +++++++++++++++++++++++++++++++++-
 1 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/Documentation/git-remote-helpers.txt b/Documentation/git-remote-helpers.txt
index 15214ae..25a0a16 100644
--- a/Documentation/git-remote-helpers.txt
+++ b/Documentation/git-remote-helpers.txt
@@ -7,7 +7,7 @@ git-remote-helpers - Helper programs to interact with remote repositories
 
 SYNOPSIS
 --------
-'git remote-&lt;transport&gt;' &lt;remote&gt;
+'git remote-&lt;transport&gt;' &lt;repository&gt; [&lt;URL&gt;]
 
 DESCRIPTION
 -----------
@@ -38,6 +38,35 @@ transport protocols, such as 'git-remote-http', 'git-remote-https',
 'git-remote-ftp' and 'git-remote-ftps'. They implement the capabilities
 'fetch', 'option', and 'push'.
 
+INVOCATION
+----------
+
+Remote helper programs are invoked with one or (optionally) two
+arguments. The first argument specifies a remote repository as in git;
+it is either the name of a configured remote or a URL. The second
+argument specifies a URL of the form '&lt;transport&gt;://&lt;address&gt;' or
+'&lt;transport&gt;::&lt;address&gt;', where '&lt;address&gt;' may be an arbitrary
+string.
+
+When git encounters a URL of the form '&lt;transport&gt;://&lt;address&gt;', where
+'&lt;transport&gt;' is a protocol that it cannot handle natively, it
+automatically invokes 'git remote-&lt;transport&gt;' with the full URL as
+the second argument. If such a URL is encountered directly on the
+command line, the first argument is the same as the second, and if it
+is encountered in a configured remote, the first argument is the name
+of that remote.
+
+A URL of the form '&lt;transport&gt;::&lt;address&gt;' explicitly instructs git to
+invoke 'git remote-&lt;transport&gt;' with '&lt;address&gt;' as the second
+argument. If such a URL is encountered directly on the command line,
+the first argument is ...
Previous thread: [PATCH 2/5] Documentation/urls: Rewrite to accomodate <transport>::<address> by Ramkumar Ramachandra on Saturday, April 17, 2010 - 5:54 pm. (9 messages)

Next thread: [PATCH 4/5] Fixup: Second argument may be any arbitrary string by Ramkumar Ramachandra on Saturday, April 17, 2010 - 5:56 pm. (1 message)