Variable: magit-githook-directory

magit-githook-directory is a variable defined in magit-git.el.

Value

nil

Documentation

Directory containing files Magit needs to map Git to Lisp hooks.

This directory must contains two files; "config", which maps Git hooks to the magit-common-git-post-commit-functions hook, and an executable "magit-run-git-hook", which is used in that, and potentially other hooks.

The value of this variable is set by magit-process-git-arguments, when it is first needed. Users can set it to another directory, but that should rarely be necessary. Additional hook mappings should instead be defined in magit-user-githook-file.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-git.el
(defvar magit-githook-directory nil
  "Directory containing files Magit needs to map Git to Lisp hooks.

This directory must contains two files; \"config\", which maps Git
hooks to the `magit-common-git-post-commit-functions' hook, and an
executable \"magit-run-git-hook\", which is used in that, and
potentially other hooks.

The value of this variable is set by `magit-process-git-arguments',
when it is first needed.  Users can set it to another directory,
but that should rarely be necessary.  Additional hook mappings
should instead be defined in `magit-user-githook-file'.")