Function: magit-section-toggle-children
magit-section-toggle-children is an interactive and byte-compiled
function defined in magit-section.el.
Signature
(magit-section-toggle-children SECTION)
Documentation
Toggle visibility of bodies of children of the current section.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defun magit-section-toggle-children (section)
"Toggle visibility of bodies of children of the current section."
(interactive (list (magit-current-section)))
(let* ((children (oref section children))
(show (seq-some (##oref % hidden) children)))
(dolist (c children)
(oset c hidden show)))
(magit-section-show section))