Function: projectile--jj-repo-dir

projectile--jj-repo-dir is a byte-compiled function defined in projectile.el.

Signature

(projectile--jj-repo-dir ROOT)

Documentation

Return the .jj/repo directory the Jujutsu workspace at ROOT uses, or nil.

Jujutsu lays its workspaces out the way git lays out worktrees: the first one holds the directory itself, and every one added later holds a file naming it.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--jj-repo-dir (root)
  "Return the `.jj/repo' directory the Jujutsu workspace at ROOT uses, or nil.

Jujutsu lays its workspaces out the way git lays out worktrees: the first
one holds the directory itself, and every one added later holds a file
naming it."
  (let ((repo (expand-file-name ".jj/repo" root)))
    (if (file-directory-p repo)
        (file-name-as-directory repo)
      (when-let* ((target (projectile--file-contents-trimmed repo))
                  ((not (string-empty-p target))))
        (file-name-as-directory
         (expand-file-name target (file-name-directory repo)))))))