aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-07-12 10:12:07 +0200
committerJonas Bernoulli <jonas@bernoul.li>2025-07-12 10:12:07 +0200
commit537be882b66fa547af58cd05e7c8b08676f535c9 (patch)
tree669b52b819455d04512bf7e5fd15b4534177dac1
parent87ddd8f7c45fed4bf57547f29524a160d78fa473 (diff)
magit-list-refs: Cosmetics
-rw-r--r--lisp/magit-git.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 64e04c7..308afdd 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -1984,9 +1984,8 @@ SORTBY is a key or list of keys to pass to the `--sort' flag of
(magit-git-lines "for-each-ref"
(concat "--format=%(symref) " format)
(mapcar (##concat "--sort=" %)
- (pcase (or sortby magit-list-refs-sortby)
- ((and val (pred stringp)) (list val))
- ((and val (pred listp)) val)))
+ (ensure-list
+ (or sortby magit-list-refs-sortby)))
(or namespaces magit-list-refs-namespaces))))
(defun magit-list-branches ()