Variable: projectile-repo-identity-cache
projectile-repo-identity-cache is a variable defined in projectile.el.
Value
#s(hash-table test equal)
Documentation
Cache of projectile-repo-identity results keyed by project root.
Cleared by projectile-invalidate-cache.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;; Repository identity
;;
;; Projectile treats every checkout as a project of its own: a git worktree
;; and the checkout it was linked from have their own roots, their own file
;; listings and usually their own branches, so that's the right call. It
;; does mean that "take me to my other checkout of this" needs a notion of
;; identity that outlives any single root, which is what
;; `projectile-repo-identity' provides. Its two keys answer progressively
;; weaker questions:
;;
;; :repo the directory the checkouts share - git's common dir, the
;; store an `hg share' points at. Equal `:repo' means one
;; repository checked out more than once, which is what a
;; worktree is.
;; :remote the upstream they were cloned from, normalized so that the
;; scp-like and URL spellings of one remote compare equal.
;; Equal `:remote' means separate clones of one project - the
;; hand-rolled version of worktrees, and just as common.
;; :owner the account, organization or directory that upstream hangs
;; off. Equal `:owner' means nothing about the code, but it's
;; the strongest signal there is that two projects belong to
;; one effort (see `projectile-sibling-projects').
;;
;; The first two are both needed: `:repo' alone would miss separate clones
;; entirely, and `:remote' alone would miss the worktrees of a repository
;; that doesn't have a remote at all.
(projectile-define-project-cache projectile-repo-identity-cache
"Cache of `projectile-repo-identity' results keyed by project root.
Cleared by `projectile-invalidate-cache'.")