Variable: treemacs--git-cache

treemacs--git-cache is a variable defined in treemacs-async.el.

Value

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

Documentation

Stores the results of previous git status calls for directories.

Its effective type is HashMap<FilePath, HashMap<FilePath, Char>>.

These cached results are used as a stand-in during immediate rendering when treemacs-git-mode(var)/treemacs-git-mode(fun) is set to be deferred, so as to minimise the effect of large face changes, especially when a full project is refreshed.

Since this table is a global value that can effectively grow indefinitely its value is limited by treemacs--git-cache-max-size.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-async.el
(defvar treemacs--git-cache (make-hash-table :size treemacs--git-cache-max-size :test #'equal)
  "Stores the results of previous git status calls for directories.
Its effective type is HashMap<FilePath, HashMap<FilePath, Char>>.

These cached results are used as a stand-in during immediate rendering when
`treemacs-git-mode' is set to be deferred, so as to minimise the effect of large
face changes, especially when a full project is refreshed.

Since this table is a global value that can effectively grow indefinitely its
value is limited by `treemacs--git-cache-max-size'.")