Function: magit-set-all
magit-set-all is a byte-compiled function defined in magit-git.el.
Signature
(magit-set-all VALUES &rest KEYS)
Documentation
Set all values of the Git variable specified by KEYS to VALUES.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-set-all (values &rest keys)
"Set all values of the Git variable specified by KEYS to VALUES."
(let ((arg (and (or (null (car keys))
(string-prefix-p "--" (car keys)))
(pop keys)))
(var (string-join keys ".")))
(when (magit-get var)
(magit-call-git "config" arg "--unset-all" var))
(dolist (v values)
(magit-call-git "config" arg "--add" var v))))