Function: projectile-ignored-project-p
projectile-ignored-project-p is a byte-compiled function defined in
projectile.el.
Signature
(projectile-ignored-project-p PROJECT-ROOT)
Documentation
Return t if PROJECT-ROOT should not be added to projectile-known-projects(var)/projectile-known-projects(fun).
For remote (TRAMP) paths the symlink-resolution step is skipped:
file-truename would round-trip to the remote, and matching against
projectile-ignored-projects(var)/projectile-ignored-projects(fun) for a remote project is uncommon enough
that requiring exact paths is acceptable. Local behavior is unchanged.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-ignored-project-p (project-root)
"Return t if PROJECT-ROOT should not be added to `projectile-known-projects'.
For remote (TRAMP) paths the symlink-resolution step is skipped:
`file-truename' would round-trip to the remote, and matching against
`projectile-ignored-projects' for a remote project is uncommon enough
that requiring exact paths is acceptable. Local behavior is unchanged."
(let ((project-root (if (file-remote-p project-root)
project-root
(file-truename project-root))))
(or (member project-root (projectile-ignored-projects))
(seq-some (lambda (pattern) (string-match-p pattern project-root))
projectile-ignored-project-patterns)
(and (functionp projectile-ignored-project-function)
(funcall projectile-ignored-project-function project-root)))))