diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-10-13 17:39:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-13 18:32:58 +0200 |
commit | 423be1f83c54dce7920cd6f42ea77245c839eb52 (patch) | |
tree | 8f73a18d7ee3245e1a7928f07adf2a66d194eba8 /builtin/commit.c | |
parent | doc txt & -h consistency: make "diff-tree" consistent (diff) | |
download | git-423be1f83c54dce7920cd6f42ea77245c839eb52.tar.xz git-423be1f83c54dce7920cd6f42ea77245c839eb52.zip |
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 <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | builtin/commit.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 [<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 }; |