Function: project-ignores
project-ignores is a byte-compiled function defined in project.el.gz.
Signature
(project-ignores PROJECT DIR)
Documentation
Return the list of glob patterns to ignore inside DIR.
Patterns can match both regular files and directories.
To root an entry, start it with ./. To match directories only,
end it with /. DIR must be either project-root or one of
project-external-roots.
Implementations
(project-ignores (PROJECT (head vc)) DIR) in `project.el'.
Undocumented
(project-ignores PROJECT DIR) in `project.el'.
Undocumented
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
(cl-defgeneric project-ignores (_project dir)
"Return the list of glob patterns to ignore inside DIR.
Patterns can match both regular files and directories.
To root an entry, start it with `./'. To match directories only,
end it with `/'. DIR must be either `project-root' or one of
`project-external-roots'."
;; TODO: Document and support regexp ignores as used by Hg.
;; TODO: Support whitelist entries.
(require 'grep)
(defvar grep-find-ignored-files)
(declare-function grep-find-ignored-files "grep" (dir))
(nconc
(mapcar
(lambda (dir)
(concat dir "/"))
vc-directory-exclusion-list)
(if (fboundp 'grep-find-ignored-files)
(grep-find-ignored-files dir)
grep-find-ignored-files)))