magit-get-all is wrapper for git config --get-all

This commit is contained in:
Alexey Voinov 2010-03-07 16:04:48 +03:00
parent dddfe3035e
commit f65dfce86e

View file

@ -297,6 +297,9 @@ Many Magit faces inherit from this one by default."
(defun magit-get (&rest keys)
(magit-git-string "config" (magit-concat-with-delim "." keys)))
(defun magit-get-all (&rest keys)
(magit-git-lines "config" "--get-all" (magit-concat-with-delim "." keys)))
(defun magit-set (val &rest keys)
(if val
(magit-git-string "config" (magit-concat-with-delim "." keys) val)