Skip to content

Commit d9d7ab3

Browse files
committed
Merge branch 'os/no-verify-skips-commit-msg-too' into maint
"git commit --help" said "--no-verify" is only about skipping the pre-commit hook, and failed to say that it also skipped the commit-msg hook. * os/no-verify-skips-commit-msg-too: commit: describe that --no-verify skips the commit-msg hook in the help text
2 parents b7fb136 + def480f commit d9d7ab3

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
@@ -1617,7 +1617,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
16171617
OPT_BOOL(0, "interactive", &interactive, N_("interactively add files")),
16181618
OPT_BOOL('p', "patch", &patch_interactive, N_("interactively add changes")),
16191619
OPT_BOOL('o', "only", &only, N_("commit only specified files")),
1620-
OPT_BOOL('n', "no-verify", &no_verify, N_("bypass pre-commit hook")),
1620+
OPT_BOOL('n', "no-verify", &no_verify, N_("bypass pre-commit and commit-msg hooks")),
16211621
OPT_BOOL(0, "dry-run", &dry_run, N_("show what would be committed")),
16221622
OPT_SET_INT(0, "short", &status_format, N_("show status concisely"),
16231623
STATUS_FORMAT_SHORT),

0 commit comments

Comments
 (0)