Skip to content

Commit 40a8852

Browse files
tgummerergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 54813bd commit 40a8852

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Documentation/git-ls-remote.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-ls-remote - List references in a remote repository
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git ls-remote' [--heads] [--tags] [--upload-pack=<exec>]
12+
'git ls-remote' [--heads] [--tags] [--refs] [--upload-pack=<exec>]
1313
[-q | --quiet] [--exit-code] <repository> [<refs>...]
1414

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

32+
--refs::
33+
Do not show peeled tags or pseudorefs like HEAD in the output.
34+
3235
-q::
3336
--quiet::
3437
Do not print remote URL to stderr.

builtin/ls-remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "remote.h"
55

66
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"
88
" [-q | --quiet] [--exit-code] [--get-url] [<repository> [<refs>...]]";
99

1010
/*

0 commit comments

Comments
 (0)