Variable: magit-diff-sections-hook
magit-diff-sections-hook is a customizable variable defined in
magit-diff.el.
Value
(magit-insert-diff
magit-insert-xref-buttons)
Documentation
Hook run to insert sections into a magit-diff-mode buffer.
This variable was added, or its default value changed, in magit version 2.3.0.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defcustom magit-diff-sections-hook
(list #'magit-insert-diff
#'magit-insert-xref-buttons)
"Hook run to insert sections into a `magit-diff-mode' buffer."
:package-version '(magit . "2.3.0")
:group 'magit-diff
:type 'hook)