Variable: magit-post-commit-hook

magit-post-commit-hook is a customizable variable defined in magit-commit.el.

Value

nil

Documentation

Hook run after creating a commit without the user editing a message.

This hook is run by magit-refresh if this-command is a member of magit-post-commit-hook-commands. This only includes commands named magit-commit-* that do *not* require that the user edits the commit message in a buffer and then finishes by pressing C-c C-c (with-editor-finish).

Also see git-commit-post-finish-hook.

This variable was added, or its default value changed, in magit version 2.90.0.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-commit.el
;;; Post Hook

(defcustom magit-post-commit-hook nil
  "Hook run after creating a commit without the user editing a message.

This hook is run by `magit-refresh' if `this-command' is a member
of `magit-post-commit-hook-commands'.  This only includes commands
named `magit-commit-*' that do *not* require that the user edits
the commit message in a buffer and then finishes by pressing
\\<with-editor-mode-map>\\[with-editor-finish].

Also see `git-commit-post-finish-hook'."
  :package-version '(magit . "2.90.0")
  :group 'magit-commands
  :type 'hook)