Skip to content

Commit 423be1f

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 320ee66 commit 423be1f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

builtin/commit.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@
4040
#include "pretty.h"
4141

4242
static const char * const builtin_commit_usage[] = {
43-
N_("git commit [<options>] [--] <pathspec>..."),
43+
N_("git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]\n"
44+
" [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>)]\n"
45+
" [-F <file> | -m <msg>] [--reset-author] [--allow-empty]\n"
46+
" [--allow-empty-message] [--no-verify] [-e] [--author=<author>]\n"
47+
" [--date=<date>] [--cleanup=<mode>] [--[no-]status]\n"
48+
" [-i | -o] [--pathspec-from-file=<file> [--pathspec-file-nul]]\n"
49+
" [(--trailer <token>[(=|:)<value>])...] [-S[<keyid>]]\n"
50+
" [--] [<pathspec>...]"),
4451
NULL
4552
};
4653

0 commit comments

Comments
 (0)