Function: magit-insert-modules
magit-insert-modules is an autoloaded and byte-compiled function
defined in magit-submodule.el.
Signature
(magit-insert-modules)
Documentation
Insert submodule sections.
Hook magit-module-sections-hook controls which module sections
are inserted, and option magit-module-sections-nested controls
whether they are wrapped in an additional section.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-submodule.el
;;; Sections
;;;###autoload
(defun magit-insert-modules ()
"Insert submodule sections.
Hook `magit-module-sections-hook' controls which module sections
are inserted, and option `magit-module-sections-nested' controls
whether they are wrapped in an additional section."
(when-let ((modules (magit-list-module-paths)))
(if magit-module-sections-nested
(magit-insert-section (modules nil t)
(magit-insert-heading
(format "%s (%s)"
(propertize "Modules"
'font-lock-face 'magit-section-heading)
(length modules)))
(magit-insert-section-body
(magit--insert-modules)))
(magit--insert-modules))))