Function: magit-insert-modules-overview

magit-insert-modules-overview is an autoloaded and byte-compiled function defined in magit-submodule.el.

Signature

(magit-insert-modules-overview)

Documentation

Insert sections for all modules.

For each section insert the path and the output of git describe --tags, or, failing that, the abbreviated HEAD commit hash.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-submodule.el
;;;###autoload
(defun magit-insert-modules-overview ()
  "Insert sections for all modules.
For each section insert the path and the output of `git describe --tags',
or, failing that, the abbreviated HEAD commit hash."
  (when-let ((modules (magit-list-module-paths)))
    (magit-insert-section (modules nil t)
      (magit-insert-heading
        (format "%s (%s)"
                (propertize "Modules overview"
                            'font-lock-face 'magit-section-heading)
                (length modules)))
      (magit-insert-section-body
        (magit--insert-modules-overview)))))