Function: project--dir-ignores

project--dir-ignores is a byte-compiled function defined in project.el.gz.

Signature

(project--dir-ignores PROJECT DIR)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
(defun project--dir-ignores (project dir)
  (let ((root (project-root project)))
    (if (not (file-in-directory-p dir root))
        (project-ignores nil nil)       ;The defaults.
      (let ((ignores (project-ignores project root)))
        (if (file-equal-p root dir)
            ignores
          ;; FIXME: Update the "rooted" ignores to relate to DIR instead.
          (cl-delete-if (lambda (str) (string-prefix-p "./" str))
                        ignores))))))