]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/show-ref: explicitly spell out different modes in synopsis
authorPatrick Steinhardt <ps@pks.im>
Tue, 31 Oct 2023 08:16:50 +0000 (09:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Nov 2023 03:09:00 +0000 (12:09 +0900)
commit1307d5e86fc7ea6f4352a70c24c6277a2f9939a3
treec1c26dc0af86d6e69013e434309cc18013db031f
parent199970e72fbfa9c858fdf2eec63bf53704bc01c6
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>
Documentation/git-show-ref.txt
builtin/show-ref.c