Function: magit-repository-local-get

magit-repository-local-get is a natively compiled function defined in magit-mode.el.

Signature

(magit-repository-local-get KEY &optional DEFAULT REPOSITORY)

Documentation

Return the repository-local value for KEY.

Return DEFAULT if no value for KEY exists.

The KEY is matched using equal.

Unless specified, REPOSITORY is the current buffer's repository.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-mode.el
(defun magit-repository-local-get (key &optional default repository)
  "Return the repository-local value for KEY.

Return DEFAULT if no value for KEY exists.

The KEY is matched using `equal'.

Unless specified, REPOSITORY is the current buffer's repository."
  (if-let ((keyvalue (magit-repository-local-exists-p key repository)))
      (cdr keyvalue)
    default))