]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc txt & -h consistency: make "commit" consistent
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 13 Oct 2022 15:39:23 +0000 (17:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Oct 2022 16:32:58 +0000 (09:32 -0700)
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 <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c

index 21ad4ccbf87d0242153aea904e49cf135167fe2f..64f420bcbf6e82b968bf54e098ae637e08e08892 100644 (file)
 #include "pretty.h"
 
 static const char * const builtin_commit_usage[] = {
-       N_("git commit [<options>] [--] <pathspec>..."),
+       N_("git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]\n"
+          "           [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>)]\n"
+          "           [-F <file> | -m <msg>] [--reset-author] [--allow-empty]\n"
+          "           [--allow-empty-message] [--no-verify] [-e] [--author=<author>]\n"
+          "           [--date=<date>] [--cleanup=<mode>] [--[no-]status]\n"
+          "           [-i | -o] [--pathspec-from-file=<file> [--pathspec-file-nul]]\n"
+          "           [(--trailer <token>[(=|:)<value>])...] [-S[<keyid>]]\n"
+          "           [--] [<pathspec>...]"),
        NULL
 };