Function: magit-map-sections
magit-map-sections is a byte-compiled function defined in
magit-section.el.
Signature
(magit-map-sections FUNCTION &optional SECTION)
Documentation
Apply FUNCTION to all sections for side effects only, depth first.
If optional SECTION is non-nil, only map over that section and
its descendants, otherwise map over all sections in the current
buffer, ending with magit-root-section.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defun magit-map-sections (function &optional section)
"Apply FUNCTION to all sections for side effects only, depth first.
If optional SECTION is non-nil, only map over that section and
its descendants, otherwise map over all sections in the current
buffer, ending with `magit-root-section'."
(let ((section (or section magit-root-section)))
(mapc (##magit-map-sections function %)
(oref section children))
(funcall function section)))