Variable: projectile--git-submodules-cache

projectile--git-submodules-cache is a variable defined in projectile.el.

Value

#s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data
	      ())

Documentation

Cache of raw git submodule listings, keyed by directory.

Each value is a list of (GITMODULES-PATH MTIME COMMAND SUBMODULES); a cache hit requires the .gitmodules path, its modification time and projectile-git-submodule-command to all match, so editing
.gitmodules (or changing the command mid-session) naturally
invalidates the entry. Alien/hybrid indexing lists submodules on every file listing and the git submodule foreach shell-out dominates its runtime (see issue #1953); a stat of .gitmodules is practically free in comparison.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(projectile-define-project-cache projectile--git-submodules-cache
  "Cache of raw git submodule listings, keyed by directory.
Each value is a list of (GITMODULES-PATH MTIME COMMAND SUBMODULES); a
cache hit requires the `.gitmodules' path, its modification time and
`projectile-git-submodule-command' to all match, so editing
`.gitmodules' (or changing the command mid-session) naturally
invalidates the entry.  Alien/hybrid indexing lists submodules on
every file listing and the `git submodule foreach' shell-out dominates
its runtime (see issue #1953); a stat of `.gitmodules' is practically
free in comparison."
  :prefix-keyed t)