Function: projectile--compile-ignore-patterns

projectile--compile-ignore-patterns is a byte-compiled function defined in projectile.el.

Signature

(projectile--compile-ignore-patterns PATTERNS)

Documentation

Compile the gitignore-style PATTERNS into a single regexp.

Return nil when PATTERNS is empty. The regexp matches a root-relative path when any of PATTERNS does; pass directory paths with a trailing slash so directory-only patterns can match them.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--compile-ignore-patterns (patterns)
  "Compile the gitignore-style PATTERNS into a single regexp.
Return nil when PATTERNS is empty.  The regexp matches a
root-relative path when any of PATTERNS does; pass directory paths
with a trailing slash so directory-only patterns can match them."
  (when patterns
    (mapconcat #'projectile--ignore-pattern-to-regexp patterns "\\|")))