Function: magit-list-repos-1

magit-list-repos-1 is a byte-compiled function defined in magit-repos.el.

Signature

(magit-list-repos-1 DIRECTORY DEPTH NESTED)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20261101.2154/magit-repos.el
(defun magit-list-repos-1 (directory depth nested)
  (let ((repop (file-readable-p (expand-file-name ".git" directory))))
    (nconc
     (and repop (list (file-name-as-directory directory)))
     (and (> depth 0)
          (or nested (not repop))
          (file-accessible-directory-p directory)
          (mapcan (##and (file-directory-p %)
                         (magit-list-repos-1 % (1- depth) nested))
                  (directory-files directory t
                                   directory-files-no-dot-files-regexp t))))))