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>
maint
Thomas Gummerer 2016-01-19 00:20:47 +01:00 committed by Junio C Hamano
parent 54813bdd2c
commit 40a8852908
2 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@ git-ls-remote - List references in a remote repository
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git ls-remote' [--heads] [--tags] [--upload-pack=<exec>] 'git ls-remote' [--heads] [--tags] [--refs] [--upload-pack=<exec>]
[-q | --quiet] [--exit-code] <repository> [<refs>...] [-q | --quiet] [--exit-code] <repository> [<refs>...]


DESCRIPTION DESCRIPTION
@ -29,6 +29,9 @@ OPTIONS
both, references stored in refs/heads and refs/tags are both, references stored in refs/heads and refs/tags are
displayed. displayed.


--refs::
Do not show peeled tags or pseudorefs like HEAD in the output.

-q:: -q::
--quiet:: --quiet::
Do not print remote URL to stderr. Do not print remote URL to stderr.

View File

@ -4,7 +4,7 @@
#include "remote.h" #include "remote.h"


static const char ls_remote_usage[] = static const char ls_remote_usage[] =
"git ls-remote [--heads] [--tags] [--upload-pack=<exec>]\n" "git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]\n"
" [-q | --quiet] [--exit-code] [--get-url] [<repository> [<refs>...]]"; " [-q | --quiet] [--exit-code] [--get-url] [<repository> [<refs>...]]";


/* /*