ls-remote: document --refs option
The --refs option was originally introduced in 2718ff0 ("Improve git-peek-remote"). The ls-remote command was first documented in 972b6fe ("ls-remote: drop storing operation and add documentation."), but the --refs option was never documented. Fix this. Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Thomas Gummerer committed
Jan 19, 2016 at 00:20 UTC
40a88529080295dd9a4218e1a72d1e8143ee4f7b
2 files changed
+5
-2
Documentation/git-ls-remote.txt
+4
-1
@@ -9,7 +9,7 @@ git-ls-remote - List references in a remote repository
9
SYNOPSIS
10
--------
11
[verse]
12
-'git ls-remote' [--heads] [--tags] [--upload-pack=<exec>]
12
+'git ls-remote' [--heads] [--tags] [--refs] [--upload-pack=<exec>]
13
[-q | --quiet] [--exit-code] <repository> [<refs>...]
14
15
DESCRIPTION
@@ -29,6 +29,9 @@ OPTIONS
29
both, references stored in refs/heads and refs/tags are
30
displayed.
31
32
+--refs::
33
+ Do not show peeled tags or pseudorefs like HEAD in the output.
34
+
35
-q::
36
--quiet::
37
Do not print remote URL to stderr.
builtin/ls-remote.c
+1
-1
@@ -4,7 +4,7 @@
4
#include "remote.h"
5
6
static const char ls_remote_usage[] =
7
-"git ls-remote [--heads] [--tags] [--upload-pack=<exec>]\n"
7
+"git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]\n"
8
" [-q | --quiet] [--exit-code] [--get-url] [<repository> [<refs>...]]";
9
10
/*