Variable: magit-section-set-visibility-hook

magit-section-set-visibility-hook is a variable defined in magit-section.el.

Value

(magit-diff-expansion-threshold(var)/magit-diff-expansion-threshold(fun)
 magit-section-cached-visibility)

Documentation

Hook used to set the initial visibility of a section.

Stop at the first function that returns non-nil. The returned value should be show, hide or nil. If no function returns non-nil, determine the visibility as usual, i.e., use the hardcoded section specific default (see magit-insert-section).

Source Code

;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defvar magit-section-set-visibility-hook
  (list #'magit-section-cached-visibility)
  "Hook used to set the initial visibility of a section.
Stop at the first function that returns non-nil.  The returned
value should be `show', `hide' or nil.  If no function returns
non-nil, determine the visibility as usual, i.e., use the
hardcoded section specific default (see `magit-insert-section').")