From: Ramkumar Ramachandra Date: Mon, 29 Mar 2010 04:04:35 GMT Subject: [PATCH 1/2] Documentation/remote-helpers: Add invocation and see also sections Message-ID: Add Invocation section, and fill it with documentation by Ilari Liusvaara. Add See Also section refering to the git-config page because several configration options are referred to in the Invocation section. --- Documentation/git-remote-helpers.txt | 51 +++++++++++++++++++++++++++++++++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/Documentation/git-remote-helpers.txt b/Documentation/git-remote-helpers.txt index 2382fb4..58533e5 100644 --- a/Documentation/git-remote-helpers.txt +++ b/Documentation/git-remote-helpers.txt @@ -38,6 +38,54 @@ Git comes with a "curl" family of remote helpers, specifically 'git-remote-ftps'. They implement the capabilities 'fetch', 'option', and 'push'. +INVOCATION +---------- + +These programs can always be invoked as 'git remote-' by +the end user. However, the following are five situations in which +these programs are automatically invoked by git in decreasing order of +priority. + +1. URL using :: syntax is used directly on command + line. ++ +The helper is invoked with :: as the first argument +and as the second argument. ++ + can only contain alphanumeric characters 0-9, A-Z and a-z. + +2. remote..url is unset, but remote..vcs is set to + . ++ +The helper is invoked with a single argument, . + +3. remote..url is set to a value using the :: + syntax. ++ +The helper is invoked with as the first argument and +as the second argument. ++ + can only contain alphanumeric characters 0-9, A-Z and a-z. + +4. remote..url is set to a value using the + :// syntax. ++ +The helper is invoked with as the first argument and +:// as the second argument. ++ + cannot be equal to any of builtin protocols 'rsync', +'file', 'git', 'ssh', 'git+ssh' and 'ssh+git' + +5. URL using :// syntax is used directly on + command line. ++ +The helper is invoked with two arguments, both equal to +://. ++ + cannot be equal to any of builtin protocols 'rsync', +'file', 'git', 'ssh', 'git+ssh' and 'ssh+git' + COMMANDS -------- @@ -206,6 +254,10 @@ OPTIONS must not rely on this option being set before connect request occurs. +SEE ALSO +-------- +linkgit:git-config[1] + Documentation ------------- Documentation by Daniel Barkalow and Ilari Liusvaara -- 1.7.0.3