Function: magit-set
magit-set is a byte-compiled function defined in magit-git.el.
Signature
(magit-set VALUE &rest KEYS)
Documentation
Set the value of the Git variable specified by KEYS to VALUE.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-set (value &rest keys)
"Set the value of the Git variable specified by KEYS to VALUE."
(let ((arg (and (or (null (car keys))
(string-prefix-p "--" (car keys)))
(pop keys)))
(key (string-join keys ".")))
(if value
(magit-git-success "config" arg key value)
(magit-git-success "config" arg "--unset" key))
value))