Skip to content

Commit

Permalink
ls-remote: document --refs option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tgummerer authored and gitster committed Jan 19, 2016
1 parent 54813bd commit 40a8852
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Documentation/git-ls-remote.txt
Expand Up @@ -9,7 +9,7 @@ git-ls-remote - List references in a remote repository
SYNOPSIS
--------
[verse]
'git ls-remote' [--heads] [--tags] [--upload-pack=<exec>]
'git ls-remote' [--heads] [--tags] [--refs] [--upload-pack=<exec>]
[-q | --quiet] [--exit-code] <repository> [<refs>...]

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

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

-q::
--quiet::
Do not print remote URL to stderr.
Expand Down
2 changes: 1 addition & 1 deletion builtin/ls-remote.c
Expand Up @@ -4,7 +4,7 @@
#include "remote.h"

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>...]]";

/*
Expand Down

0 comments on commit 40a8852

Please sign in to comment.