Variable: magit-section-cache-visibility
magit-section-cache-visibility is a customizable variable defined in
magit-section.el.
Value
t
Documentation
Whether to cache visibility of sections.
Sections always retain their visibility state when they are being recreated during a refresh. But if a section disappears and then later reappears again, then this option controls whether this is the case.
If t, then cache the visibility of all sections. If a list of section types, then only do so for matching sections. If nil, then don't do so for any sections.
This variable was added, or its default value changed, in magit-section version 2.12.0.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defcustom magit-section-cache-visibility t
"Whether to cache visibility of sections.
Sections always retain their visibility state when they are being
recreated during a refresh. But if a section disappears and then
later reappears again, then this option controls whether this is
the case.
If t, then cache the visibility of all sections. If a list of
section types, then only do so for matching sections. If nil,
then don't do so for any sections."
:package-version '(magit-section . "2.12.0")
:group 'magit-section
:type '(choice (const :tag "Don't cache visibility" nil)
(const :tag "Cache visibility of all sections" t)
(repeat :tag "Cache visibility for section types" symbol)))