Function: projectile--grep-find-prune-clause
projectile--grep-find-prune-clause is a byte-compiled function defined
in projectile.el.
Signature
(projectile--grep-find-prune-clause)
Documentation
Return the find prune expression for Projectile's ignore configuration.
Built from the four projectile-grep-find-* variables projectile--grep
binds around the rgrep call. The ! ensure entries are subtracted
from the whole ignore expression, so they rescue an anchored path just
like they rescue a floating pattern - and just like they do when
indexing.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--grep-find-prune-clause ()
"Return the `find' prune expression for Projectile's ignore configuration.
Built from the four `projectile-grep-find-*' variables `projectile--grep'
binds around the `rgrep' call. The `!' ensure entries are subtracted
from the whole ignore expression, so they rescue an anchored path just
like they rescue a floating pattern - and just like they do when
indexing."
(when-let* ((ignore-tests (projectile--grep-find-path-tests
projectile-grep-find-ignored-paths
projectile-grep-find-ignored-patterns)))
(let ((unignore-tests (projectile--grep-find-path-tests
projectile-grep-find-unignored-paths
projectile-grep-find-unignored-patterns)))
(concat (shell-quote-argument "(")
(if unignore-tests
(concat " " (shell-quote-argument "(")
ignore-tests
" " (shell-quote-argument ")")
" -a " (shell-quote-argument "!")
" " (shell-quote-argument "(")
unignore-tests
" " (shell-quote-argument ")"))
ignore-tests)
" " (shell-quote-argument ")")
" -prune -o "))))