Variable: magit-run-hooks-from-githooks

magit-run-hooks-from-githooks is a customizable variable defined in magit-git.el.

Value

t

Documentation

Whether Git hooks may run Lisp hooks.

By default the Lisp hook magit-common-git-post-commit-functions is run by the Git hooks post-commit, post-merge and post-rewrite. Use magit-user-githook-file (which see) to define additional hooks.

Git hooks can only run Lisp hooks, if Magit invokes Git asynchronously and on the local machine, and at least Git v2.54.0 is used.

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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-git.el
(defcustom magit-run-hooks-from-githooks t
  "Whether Git hooks may run Lisp hooks.

By default the Lisp hook `magit-common-git-post-commit-functions' is
run by the Git hooks `post-commit', `post-merge' and `post-rewrite'.
Use `magit-user-githook-file' (which see) to define additional hooks.

Git hooks can only run Lisp hooks, if Magit invokes Git asynchronously
and on the local machine, and at least Git v2.54.0 is used."
  :package-version '(magit . "4.6.0")
  :group 'magit-process
  :type 'boolean)