This hook is called after the pre-commit
hook to populate the text editor with a commit message. This is typically used to alter the automatically generated commit messages for squashed or merged commits.
One to three arguments are passed to this hook:
-m
or -F
option),-t
option),-c
, -C
, or --amend
option was given.Similar to pre-commit
, exiting with a non-zero status aborts the commit.