[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit b5c0882a4f 2/7: magit-get-boolean: Support usin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit b5c0882a4f 2/7: magit-get-boolean: Support using scope argument |
Date: |
Tue, 1 Mar 2022 08:58:17 -0500 (EST) |
branch: elpa/git-commit
commit b5c0882a4fe907b09db12a2d87dc3fddf52b264d
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-get-boolean: Support using scope argument
As for related functions, leave that undocumented.
---
lisp/magit-git.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index fcabd0fab9..256a4b73fe 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -731,10 +731,13 @@ See info node `(magit)Debugging Tools' for more
information."
(defun magit-get-boolean (&rest keys)
"Return the boolean value of the Git variable specified by KEYS.
Also see `magit-git-config-p'."
- (let ((key (mapconcat 'identity keys ".")))
+ (let ((arg (and (or (null (car keys))
+ (string-prefix-p "--" (car keys)))
+ (pop keys)))
+ (key (mapconcat 'identity keys ".")))
(equal (if magit--refresh-cache
(car (last (magit-config-get-from-cached-list key)))
- (magit-git-str "config" "--bool" key))
+ (magit-git-str "config" arg "--bool" key))
"true")))
(defun magit-set (value &rest keys)
- [nongnu] elpa/git-commit updated (0f96d39834 -> 0ab892a3b4), ELPA Syncer, 2022/03/01
- [nongnu] elpa/git-commit b5c0882a4f 2/7: magit-get-boolean: Support using scope argument,
ELPA Syncer <=
- [nongnu] elpa/git-commit 064a047932 1/7: transient-infix-read: Use same macros as default around method, ELPA Syncer, 2022/03/01
- [nongnu] elpa/git-commit 72ee06c7ea 5/7: magit-read-unmerged-file: New function, ELPA Syncer, 2022/03/01
- [nongnu] elpa/git-commit 9c056d41a6 3/7: magit--git-variable:choices: Support changing global value, ELPA Syncer, 2022/03/01
- [nongnu] elpa/git-commit a2ef67a415 4/7: magit--git-variable:boolean: New class, ELPA Syncer, 2022/03/01
- [nongnu] elpa/git-commit 630ada42cb 6/7: magit-extras.el: Rearrange a bit, ELPA Syncer, 2022/03/01
- [nongnu] elpa/git-commit 0ab892a3b4 7/7: magit-git-mergetool: New command, ELPA Syncer, 2022/03/01