Function: projectile--alien-command-excludes-p
projectile--alien-command-excludes-p is a byte-compiled function
defined in projectile.el.
Signature
(projectile--alien-command-excludes-p VCS COMMAND &optional DIRECTORY)
Documentation
Return non-nil when COMMAND for VCS can carry the ignore rules itself.
When it can't, the ignore rules have to be applied to the command's output instead.
Besides the tools that have no way to express exclusions at all, that's
also the case for a project whose dirconfig has ! ensure entries: an
exclusion argument can't be taken back (neither a git exclude pathspec
nor fd --exclude has a way to un-exclude a path), so such a project is
filtered in Lisp, where the ensure patterns can rescue the files the
ignore patterns matched. DIRECTORY is the project root the ensure
entries are read from; it defaults to default-directory.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--alien-command-excludes-p (vcs command &optional directory)
"Return non-nil when COMMAND for VCS can carry the ignore rules itself.
When it can't, the ignore rules have to be applied to the command's
output instead.
Besides the tools that have no way to express exclusions at all, that's
also the case for a project whose dirconfig has `!' ensure entries: an
exclusion argument can't be taken back (neither a git exclude pathspec
nor `fd --exclude' has a way to un-exclude a path), so such a project is
filtered in Lisp, where the ensure patterns can rescue the files the
ignore patterns matched. DIRECTORY is the project root the ensure
entries are read from; it defaults to `default-directory'."
(and (or (projectile--fd-command-p command) (eq vcs 'git))
(null (projectile--ensure-patterns directory))
t))