Function: projectile-expand-root

projectile-expand-root is a byte-compiled function defined in projectile.el.

Signature

(projectile-expand-root NAME &optional DIR)

Documentation

Expand NAME to project root.

When DIR is specified it uses DIR's project, otherwise it acts on the current project.

Never use on many files since it's going to recalculate the project-root for every file.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-expand-root (name &optional dir)
  "Expand NAME to project root.
When DIR is specified it uses DIR's project, otherwise it acts
on the current project.

Never use on many files since it's going to recalculate the
project-root for every file."
  (expand-file-name name (projectile-project-root dir)))