Function: magit-get-boolean

magit-get-boolean is a byte-compiled function defined in magit-git.el.

Signature

(magit-get-boolean &rest KEYS)

Documentation

Return the boolean value of the Git variable specified by KEYS.

Also see magit-git-config-p.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-get-boolean (&rest keys)
  "Return the boolean value of the Git variable specified by KEYS.
Also see `magit-git-config-p'."
  (let ((arg (and (or (null (car keys))
                      (string-prefix-p "--" (car keys)))
                  (pop keys)))
        (key (string-join keys ".")))
    (equal (if magit--refresh-cache
               (car (last (magit-config-get-from-cached-list key)))
             (magit-git-str "config" arg "--bool" "--include" key))
           "true")))