Function: projectile--alien-ext-command

projectile--alien-ext-command is a byte-compiled function defined in projectile.el.

Signature

(projectile--alien-ext-command VCS DIRECTORY)

Documentation

Return the external listing command for DIRECTORY, honoring ignore rules.

Like projectile-get-ext-command, but with Projectile's ignore rules folded in as exclusion arguments when the tool understands them and projectile-alien-honors-ignores is non-nil.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--alien-ext-command (vcs directory)
  "Return the external listing command for DIRECTORY, honoring ignore rules.
Like `projectile-get-ext-command', but with Projectile's ignore rules
folded in as exclusion arguments when the tool understands them and
`projectile-alien-honors-ignores' is non-nil."
  (let ((command (projectile-get-ext-command vcs directory)))
    (if-let* ((command)
              (projectile-alien-honors-ignores)
              ;; Only alien pushes the rules down; hybrid applies them to
              ;; the output itself.  Both speak the same rules now, so
              ;; doing both would just be wasted work.
              ((eq projectile-indexing-method 'alien))
              ((projectile--alien-command-excludes-p vcs command directory))
              (globs (projectile--project-ignore-globs directory))
              (args (projectile--alien-exclude-args vcs command globs)))
        (concat command " " args)
      command)))