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)

Source Code

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