Skip to content

Commit ce82edd

Browse files
stefanbellergitster
authored andcommitted
Documentation/githooks: mention merge in commit-msg hook
The commit-msg hook is invoked by both commit and merge now. Reported-by: Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f8b8635 commit ce82edd

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Documentation/githooks.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,10 @@ help message found in the commented portion of the commit template.
127127
commit-msg
128128
~~~~~~~~~~
129129

130-
This hook is invoked by 'git commit', and can be bypassed
131-
with the `--no-verify` option. It takes a single parameter, the
132-
name of the file that holds the proposed commit log message.
133-
Exiting with a non-zero status causes the 'git commit' to
134-
abort.
130+
This hook is invoked by 'git commit' and 'git merge', and can be
131+
bypassed with the `--no-verify` option. It takes a single parameter,
132+
the name of the file that holds the proposed commit log message.
133+
Exiting with a non-zero status causes the command to abort.
135134

136135
The hook is allowed to edit the message file in place, and can be used
137136
to normalize the message into some project standard format. It

0 commit comments

Comments
 (0)