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>

Stefan Naewe committed Sep 7, 2012 at 08:41 UTC 2303cad242a6ccc4745d7994ecc0425bd8513a0d
2 files changed +6 -1
Documentation/git-ls-remote.txt
+5
@@ -42,6 +42,11 @@ OPTIONS
42 it successfully talked with the remote repository, whether it
43 found any matching refs.
44
45 +--get-url::
46 + Expand the URL of the given remote repository taking into account any
47 + "url.<base>.insteadOf" config setting (See linkgit:git-config[1]) and
48 + exit without talking to the remote.
49 +
50 <repository>::
51 Location of the repository. The shorthand defined in
52 $GIT_DIR/branches/ can be used. Use "." (dot) to list references in
builtin/ls-remote.c
+1 -1
@@ -5,7 +5,7 @@
5
6 static const char ls_remote_usage[] =
7 "git ls-remote [--heads] [--tags] [-u <exec> | --upload-pack <exec>]\n"
8 -" [-q|--quiet] [--exit-code] [<repository> [<refs>...]]";
8 +" [-q|--quiet] [--exit-code] [--get-url] [<repository> [<refs>...]]";
9
10 /*
11 * Is there one among the list of patterns that match the tail part