Function: magit--with-repository-local-cache
magit--with-repository-local-cache is a macro defined in
magit-mode.el.
Signature
(magit--with-repository-local-cache KEY &rest BODY)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-mode.el
(defmacro magit--with-repository-local-cache (key &rest body)
(declare (indent 1) (debug (form body)))
(let ((k (gensym)))
`(let ((,k ,key))
(if-let ((kv (magit-repository-local-exists-p ,k)))
(cdr kv)
(let ((v ,(macroexp-progn body)))
(magit-repository-local-set ,k v)
v)))))