Function: projectile--ext-command-program
projectile--ext-command-program is a byte-compiled function defined in
projectile.el.
Signature
(projectile--ext-command-program COMMAND)
Documentation
Return the name of the program COMMAND runs.
The name loses its directory and a Windows .exe suffix, so git.exe
and /usr/bin/git both come back as "git". COMMAND may be nil, in
which case so is the result.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260930.434/projectile.el
;;; Alien Project Indexing
;;
;; This corresponds to `projectile-indexing-method' being set to hybrid or alien.
;; The only difference between the two methods is that alien doesn't do
;; any post-processing of the files obtained via the external command.
;;
;; Projectile's own ignore rules are still honored under alien (see
;; `projectile-alien-honors-ignores'), but they are pushed down into the
;; external tool as exclusion arguments rather than applied to its output, so
;; alien keeps doing no Lisp-side filtering. Only the tools that can't express
;; exclusions fall back to filtering in Emacs.
(defun projectile--ext-command-program (command)
"Return the name of the program COMMAND runs.
The name loses its directory and a Windows `.exe' suffix, so `git.exe'
and `/usr/bin/git' both come back as \"git\". COMMAND may be nil, in
which case so is the result."
(when-let* ((command)
(program (car (split-string command))))
(string-remove-suffix ".exe" (file-name-nondirectory program))))