Function: projectile--vcs-from-directory-listing

projectile--vcs-from-directory-listing is a byte-compiled function defined in projectile.el.

Signature

(projectile--vcs-from-directory-listing DIRECTORY)

Documentation

Return the VCS symbol matching a marker directly inside DIRECTORY.

Issues a single directory-files call rather than one file-exists-p per marker - over TRAMP that turns 10 sequential remote round-trips into one.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--vcs-from-directory-listing (directory)
  "Return the VCS symbol matching a marker directly inside DIRECTORY.
Issues a single `directory-files' call rather than one
`file-exists-p' per marker - over TRAMP that turns 10 sequential
remote round-trips into one."
  (when-let* ((entry-set (projectile--directory-entry-set directory)))
    (cl-some (lambda (cell)
               (and (gethash (car cell) entry-set) (cdr cell)))
             projectile-vcs-markers)))