Function: projectile--ripgrep-ignore-globs

projectile--ripgrep-ignore-globs is a byte-compiled function defined in projectile.el.

Signature

(projectile--ripgrep-ignore-globs)

Documentation

Return ripgrep --glob exclusions for the project's ignore patterns.

The patterns come from projectile--ignore-patterns and are passed to ripgrep as they are - ripgrep's globs follow gitignore rules too.

Uses the --glob=!PATTERN form rather than --glob \=!PATTERN'', whose surrounding single quotes are only stripped by POSIX shells - on Windows cmd they become part of the pattern and the exclusion silently fails
(see #1946).

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--ripgrep-ignore-globs ()
  "Return ripgrep `--glob' exclusions for the project's ignore patterns.

The patterns come from `projectile--ignore-patterns' and are passed to
ripgrep as they are - ripgrep's globs follow gitignore rules too.

Uses the `--glob=!PATTERN' form rather than `--glob \\='!PATTERN\\='', whose
surrounding single quotes are only stripped by POSIX shells - on Windows
`cmd' they become part of the pattern and the exclusion silently fails
\(see #1946)."
  (mapcar (lambda (val) (concat "--glob=!" val))
          (projectile--ignore-patterns)))