Function: magit-section-cycle-global
magit-section-cycle-global is an interactive and byte-compiled
function defined in magit-section.el.
Signature
(magit-section-cycle-global)
Documentation
Cycle visibility of all sections in the current buffer.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defun magit-section-cycle-global ()
"Cycle visibility of all sections in the current buffer."
(interactive)
(cond-let
[[children (oref magit-root-section children)]]
((and (seq-some (##oref % hidden) children)
(seq-some (##oref % children) children))
(magit-section-show-headings magit-root-section))
((seq-some #'magit-section-hidden-body children)
(magit-section-show-children magit-root-section))
((mapc #'magit-section-hide children))))