Function: projectile-dirname-matching-count

projectile-dirname-matching-count is a byte-compiled function defined in projectile.el.

Signature

(projectile-dirname-matching-count A B)

Documentation

Count matching dirnames ascending file paths in A and B.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-dirname-matching-count (a b)
  "Count matching dirnames ascending file paths in A and B."
  (setq a (reverse (split-string (or (file-name-directory a) "") "/" t))
        b (reverse (split-string (or (file-name-directory b) "") "/" t)))
  (let ((common 0))
    (while (and a b (string-equal (pop a) (pop b)))
      (setq common (1+ common)))
    common))