Variable: git-commit-post-finish-hook
git-commit-post-finish-hook is a customizable variable defined in
git-commit.el.
Value
nil
Documentation
Hook run after the user finished writing a commit message.
This hook is only run after pressing C-c C-c (with-editor-finish) in a buffer used
to edit a commit message. If a commit is created without the
user typing a message into a buffer, then this hook is not run.
This hook is not run until the new commit has been created. If
that takes Git longer than git-commit-post-finish-hook-timeout
seconds, then this hook isn't run at all. For certain commands
such as magit-rebase-continue this hook is never run because
doing so would lead to a race condition.
Also see magit-post-commit-hook.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-commit.el
;;; Post Hook
(defcustom git-commit-post-finish-hook nil
"Hook run after the user finished writing a commit message.
\\<with-editor-mode-map>\
This hook is only run after pressing \\[with-editor-finish] in a buffer used
to edit a commit message. If a commit is created without the
user typing a message into a buffer, then this hook is not run.
This hook is not run until the new commit has been created. If
that takes Git longer than `git-commit-post-finish-hook-timeout'
seconds, then this hook isn't run at all. For certain commands
such as `magit-rebase-continue' this hook is never run because
doing so would lead to a race condition.
Also see `magit-post-commit-hook'."
:group 'git-commit
:type 'hook
:get #'magit-hook-custom-get)