diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-21 10:47:50 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-21 10:47:50 +0100 |
| commit | aa625ec04ccce8ce563b519c31083fce80ea15c2 (patch) | |
| tree | 7099c2e779a4931d27ac0622057a293404b98f2c | |
| parent | 8d891f7c41f03aaa995d21fdcff8101d4568712f (diff) | |
transient-init-value(boolean): Handle unset value correctly
Invalid is still treated as false; that should probably be changed.
| -rw-r--r-- | lisp/magit-transient.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/magit-transient.el b/lisp/magit-transient.el index c88dc4b..8a38e9a 100644 --- a/lisp/magit-transient.el +++ b/lisp/magit-transient.el @@ -76,7 +76,9 @@ (oref obj scope))) (arg (if (oref obj global) "--global" "--local"))) (oset obj variable variable) - (oset obj value (if (magit-get-boolean arg variable) "true" "false")))) + (oset obj value + (and (zerop (magit-process-git t "config" "--bool" arg variable)) + (buffer-substring (point-min) (1- (point-max))))))) ;;;; Read |
