summaryrefslogtreecommitdiffstats
path: root/Documentation/git-show-ref.txt
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2023-10-31 09:16:50 +0100
committerJunio C Hamano <gitster@pobox.com>2023-11-01 04:09:00 +0100
commit1307d5e86fc7ea6f4352a70c24c6277a2f9939a3 (patch)
treec1c26dc0af86d6e69013e434309cc18013db031f /Documentation/git-show-ref.txt
parentbuiltin/show-ref: ensure mutual exclusiveness of subcommands (diff)
downloadgit-1307d5e86fc7ea6f4352a70c24c6277a2f9939a3.tar.xz
git-1307d5e86fc7ea6f4352a70c24c6277a2f9939a3.zip
builtin/show-ref: explicitly spell out different modes in synopsis
The synopsis treats the `--verify` and the implicit mode the same. They are slightly different though: - They accept different sets of flags. - The implicit mode accepts patterns while the `--verify` mode accepts references. Split up the synopsis for these two modes such that we can disambiguate those differences. While at it, drop "--quiet" from the pattern mode's synopsis. It does not make a lot of sense to list patterns, but squelch the listing output itself. The description for "--quiet" is adapted accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-show-ref.txt')
-rw-r--r--Documentation/git-show-ref.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/git-show-ref.txt b/Documentation/git-show-ref.txt
index 36e81b9dec..9afcd4d536 100644
--- a/Documentation/git-show-ref.txt
+++ b/Documentation/git-show-ref.txt
@@ -8,9 +8,12 @@ git-show-ref - List references in a local repository
SYNOPSIS
--------
[verse]
-'git show-ref' [-q | --quiet] [--verify] [--head] [-d | --dereference]
+'git show-ref' [--head] [-d | --dereference]
[-s | --hash[=<n>]] [--abbrev[=<n>]] [--tags]
[--heads] [--] [<pattern>...]
+'git show-ref' --verify [-q | --quiet] [-d | --dereference]
+ [-s | --hash[=<n>]] [--abbrev[=<n>]]
+ [--] [<ref>...]
'git show-ref' --exclude-existing[=<pattern>]
DESCRIPTION
@@ -70,8 +73,8 @@ OPTIONS
-q::
--quiet::
- Do not print any results to stdout. When combined with `--verify`, this
- can be used to silently check if a reference exists.
+ Do not print any results to stdout. Can be used with `--verify` to
+ silently check if a reference exists.
--exclude-existing[=<pattern>]::