Function: projectile-same-repo-p

projectile-same-repo-p is a byte-compiled function defined in projectile.el.

Signature

(projectile-same-repo-p A B)

Documentation

Return non-nil when identities A and B describe one repository.

Either sharing the repository directory (worktrees of each other) or sharing an upstream (clones of each other) is enough. Missing keys never match, so two projects that Projectile knows nothing about aren't silently declared identical.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-same-repo-p (a b)
  "Return non-nil when identities A and B describe one repository.

Either sharing the repository directory (worktrees of each other) or
sharing an upstream (clones of each other) is enough.  Missing keys never
match, so two projects that Projectile knows nothing about aren't
silently declared identical."
  (or (when-let* ((repo (plist-get a :repo)))
        (equal repo (plist-get b :repo)))
      (when-let* ((remote (plist-get a :remote)))
        (equal remote (plist-get b :remote)))))