doc txt & -h consistency: add missing options and labels
Fix various issues of SYNOPSIS and -h output syntax where:
* Options such as --force were missing entirely
* ...or the short option, such as -f
* We said "opts" or "options", but could instead enumerate
the (small) set of supported options
* Options that were missing entirely (ls-remote's --sort=<key>)
As we can specify "--sort" multiple times (it's backed by a
string-list" it should really be "[(--sort=<key>)...]", which is
what "git for-each-ref" lists it as, but let's leave that issue for
a subsequent cleanup, and stop at making these consistent. Other
"ref-filter.h" users share the same issue, e.g. "git-branch.txt".
* For "verify-tag" and "verify-commit" we were missing the "--raw"
option.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committedOct 13, 2022 at 17:39 UTC8c9e292dc091e637eeb78fb0046c3572717b4a67
19 files changed+40-26
Documentation/git-send-pack.txt
+2-1
index e0c7162343..595b002152 100644--- a/Documentation/git-send-pack.txt+++ b/Documentation/git-send-pack.txt@@ -9,7 +9,8 @@ git-send-pack - Push objects over Git protocol to another repository SYNOPSIS -------- [verse]-'git send-pack' [--dry-run] [--force] [--receive-pack=<git-receive-pack>]+'git send-pack' [--mirror] [--dry-run] [--force]+ [--receive-pack=<git-receive-pack>] [--verbose] [--thin] [--atomic] [--[no-]signed | --signed=(true|false|if-asked)] [<host>:]<directory> (--all | <ref>...)
Documentation/git-sparse-checkout.txt
+1-1
index 872436d742..68392d2a56 100644--- a/Documentation/git-sparse-checkout.txt+++ b/Documentation/git-sparse-checkout.txt@@ -9,7 +9,7 @@ git-sparse-checkout - Reduce your working tree to a subset of tracked files SYNOPSIS -------- [verse]-'git sparse-checkout' <subcommand> [<options>]+'git sparse-checkout' (init | list | set | add | reapply | disable) [<options>] DESCRIPTION
Documentation/git-update-server-info.txt
+7-1
index 969bb2e15f..17e429dbd0 100644--- a/Documentation/git-update-server-info.txt+++ b/Documentation/git-update-server-info.txt@@ -9,7 +9,7 @@ git-update-server-info - Update auxiliary info file to help dumb servers SYNOPSIS -------- [verse]-'git update-server-info'+'git update-server-info' [-f | --force] DESCRIPTION -----------@@ -19,6 +19,12 @@ $GIT_OBJECT_DIRECTORY/info directories to help clients discover what references and packs the server has. This command generates such auxiliary files.+OPTIONS+-------+-f::+--force::+ update the info files from scratch.+ OUTPUT ------
Documentation/git-verify-commit.txt
+1-1
index 92097f6673..aee4c40eac 100644--- a/Documentation/git-verify-commit.txt+++ b/Documentation/git-verify-commit.txt@@ -8,7 +8,7 @@ git-verify-commit - Check the GPG signature of commits SYNOPSIS -------- [verse]-'git verify-commit' <commit>...+'git verify-commit' [-v | --verbose] [--raw] <commit>... DESCRIPTION -----------