Function: magit-submodule--format-module

magit-submodule--format-module is a byte-compiled function defined in magit-submodule.el.

Signature

(magit-submodule--format-module MODULE)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-submodule.el
(defun magit-submodule--format-module (module)
  (and (funcall magit-submodule-list-predicate module)
       (let ((default-directory
              (expand-file-name (file-name-as-directory module))))
         (list default-directory
               (vconcat
                (mapcar
                 (pcase-lambda (`(,title ,width ,fn ,props))
                   (or (and (or (file-exists-p ".git")
                                (and
                                 (symbolp fn)
                                 (get fn 'magit-submodule-support-unpopulated)))
                            (funcall fn `((:path  ,module)
                                          (:title ,title)
                                          (:width ,width)
                                          ,@props)))
                       ""))
                 magit-repolist-columns))))))