Skip to content

Commit ea04174

Browse files
committed
Add -M short flag for --amend
1 parent 813d9a9 commit ea04174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
16871687
STATUS_FORMAT_LONG),
16881688
OPT_BOOL('z', "null", &s.null_termination,
16891689
N_("terminate entries with NUL")),
1690-
OPT_BOOL(0, "amend", &amend, N_("amend previous commit")),
1690+
OPT_BOOL('M', "amend", &amend, N_("amend previous commit")),
16911691
OPT_BOOL(0, "no-post-rewrite", &no_post_rewrite, N_("bypass post-rewrite hook")),
16921692
{ OPTION_STRING, 'u', "untracked-files", &untracked_files_arg, N_("mode"), N_("show untracked files, optional modes: all, normal, no. (Default: all)"), PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
16931693
OPT_PATHSPEC_FROM_FILE(&pathspec_from_file),

0 commit comments

Comments
 (0)