Function: projectile-get-all-sub-projects

projectile-get-all-sub-projects is a byte-compiled function defined in projectile.el.

Signature

(projectile-get-all-sub-projects PROJECT)

Documentation

Get all sub-projects for a given project.

PROJECT is base directory to start search recursively.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-get-all-sub-projects (project)
  "Get all sub-projects for a given project.

PROJECT is base directory to start search recursively."
  (let ((submodules (projectile-get-immediate-sub-projects project)))
    (cond
     ((null submodules)
      nil)
     (t
      (append submodules (flatten-tree
                          ;; recursively get sub-projects of each sub-project
                          (mapcar (lambda (s)
                                    (projectile-get-all-sub-projects s)) submodules)))))))