summaryrefslogtreecommitdiff
path: root/Documentation/git-ls-remote.txt
diff options
context:
space:
mode:
authorStefan Naewe <stefan.naewe@gmail.com>2012-09-07 06:41:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-09-07 17:58:35 (GMT)
commit2303cad242a6ccc4745d7994ecc0425bd8513a0d (patch)
treed33247a9fb646fcbdec1c38e45addf2c6049ae1c /Documentation/git-ls-remote.txt
parentd0f1ea6003d97e63110fa7d50bb07f546a909b6e (diff)
downloadgit-2303cad242a6ccc4745d7994ecc0425bd8513a0d.zip
git-2303cad242a6ccc4745d7994ecc0425bd8513a0d.tar.gz
git-2303cad242a6ccc4745d7994ecc0425bd8513a0d.tar.bz2
ls-remote: document the '--get-url' option
While looking for a way to expand the URL of a remote that uses a 'url.<name>.insteadOf' config option I stumbled over the undocumented '--get-url' option of 'git ls-remote'. This adds some minimum documentation for that option. And while at it, also add that option to the '-h' output. Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-ls-remote.txt')
-rw-r--r--Documentation/git-ls-remote.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-ls-remote.txt b/Documentation/git-ls-remote.txt
index 7a9b86a..774de5e 100644
--- a/Documentation/git-ls-remote.txt
+++ b/Documentation/git-ls-remote.txt
@@ -42,6 +42,11 @@ OPTIONS
it successfully talked with the remote repository, whether it
found any matching refs.
+--get-url::
+ Expand the URL of the given remote repository taking into account any
+ "url.<base>.insteadOf" config setting (See linkgit:git-config[1]) and
+ exit without talking to the remote.
+
<repository>::
Location of the repository. The shorthand defined in
$GIT_DIR/branches/ can be used. Use "." (dot) to list references in