From: Ævar Arnfjörð Bjarmason Date: Thu, 13 Oct 2022 15:39:23 +0000 (+0200) Subject: doc txt & -h consistency: make "commit" consistent X-Git-Tag: v2.39.0-rc0~73^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=423be1f83c54dce7920cd6f42ea77245c839eb52;p=thirdparty%2Fgit.git doc txt & -h consistency: make "commit" consistent Make the "-h" output of "git commit" consistent with the *.txt version by exhaustively listing the options that it takes. Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- diff --git a/builtin/commit.c b/builtin/commit.c index 21ad4ccbf8..64f420bcbf 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -40,7 +40,14 @@ #include "pretty.h" static const char * const builtin_commit_usage[] = { - N_("git commit [] [--] ..."), + N_("git commit [-a | --interactive | --patch] [-s] [-v] [-u] [--amend]\n" + " [--dry-run] [(-c | -C | --squash) | --fixup [(amend|reword):])]\n" + " [-F | -m ] [--reset-author] [--allow-empty]\n" + " [--allow-empty-message] [--no-verify] [-e] [--author=]\n" + " [--date=] [--cleanup=] [--[no-]status]\n" + " [-i | -o] [--pathspec-from-file= [--pathspec-file-nul]]\n" + " [(--trailer [(=|:)])...] [-S[]]\n" + " [--] [...]"), NULL };