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

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

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Apr 7, 2010, 05:57 UTC
Message-ID
<g2vf3271551004062257ycbda64d3z3d3004d802a03fc3@mail.gmail.com>

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 <artagnon@gmail.com>
---
 Changes: The second argument may be an arbitrary string as
 Jonathan pointed out.
 Documentation/git-remote-helpers.txt |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-remote-helpers.txt
b/Documentation/git-remote-helpers.txt
index 7a5569c..b0e7d54 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-<transport>' <remote>
+'git remote-<transport>' <repository> [<URL>]

 DESCRIPTION
 -----------
@@ -38,6 +38,34 @@ 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; it is usually of the form
+'<transport>://<address>', but any arbitrary string is possible.
+
+When git encounters a URL of the form '<transport>://<address>', where
+'<transport>' is a protocol that it cannot handle natively, it
+automatically invokes 'git remote-<transport>' 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 '<transport>::<address>' explicitly instructs git to
+invoke 'git remote-<transport>' with '<address>' as the second
+argument. If such a URL is encountered directly on the command line,
+the first argument is '<address>', and if it is encountered in a
+configured remote, the first argument is the name of that remote.
+
+Additionally, when a configured remote has 'remote.<name>.vcs' set to
+'<transport>', git explicitly invokes 'git remote-<transport>' with
+'<name>' as the first argument. If set, the second argument is
+'remote.<name>.url'; otherwise, the second argument is omitted.
+
 COMMANDS
 --------

@@ -206,6 +234,10 @@ OPTIONS
 	must not rely on this option being set before
 	connect request occurs.

+SEE ALSO
+--------
+linkgit:git-remote[1]
+
 Documentation
 -------------
 Documentation by Daniel Barkalow and Ilari Liusvaara
-- 
1.7.0.3
Next: Ramkumar Ramachandra
Message 1 of 19 in “Documentation/remote-helpers: Add invocation section”
  1. Documentation/remote-helpers: Add invocation sectionRamkumar Ramachandra, Apr 7, 2010
  2. Ramkumar RamachandraApr 7, 2010
  3. Junio C HamanoApr 7, 2010
  4. Ramkumar RamachandraApr 7, 2010
  5. Junio C HamanoApr 7, 2010
  6. Ramkumar RamachandraApr 7, 2010
  7. Jonathan NiederApr 7, 2010
  8. Junio C HamanoApr 7, 2010
  9. Ramkumar RamachandraApr 8, 2010
  10. Jonathan NiederApr 8, 2010
  11. Junio C HamanoApr 8, 2010
  12. Ramkumar RamachandraApr 10, 2010
  13. Sverre RabbelierApr 8, 2010
  14. Re*: [PATCH v9] Documentation/remote-helpers: Add invocation sectionJunio C Hamano, Apr 8, 2010
  15. Sverre RabbelierApr 8, 2010
  16. Junio C HamanoApr 8, 2010
  17. Michael J GruberApr 9, 2010
  18. Junio C HamanoApr 10, 2010
  19. Ramkumar RamachandraApr 10, 2010

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.