emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/magit 621b67fc7e 15/28: magit-list-special-refnames: Cosme


From: Jonas Bernoulli
Subject: [nongnu] elpa/magit 621b67fc7e 15/28: magit-list-special-refnames: Cosmetics
Date: Fri, 6 Dec 2024 17:17:04 -0500 (EST)

branch: elpa/magit
commit 621b67fc7e0663f262d17c8e975e7ebbe8fefbbe
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    magit-list-special-refnames: Cosmetics
---
 lisp/magit-git.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 810bc8d575..88402ab94b 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -2011,10 +2011,8 @@ SORTBY is a key or list of keys to pass to the `--sort' 
flag of
 
 (defun magit-list-special-refnames ()
   (let ((gitdir (magit-gitdir)))
-    (cl-mapcan (lambda (name)
-                 (and (file-exists-p (expand-file-name name gitdir))
-                      (list name)))
-               magit-special-refnames)))
+    (seq-keep (lambda (name) (file-exists-p (expand-file-name name gitdir)))
+              magit-special-refnames)))
 
 (defun magit-list-branch-names ()
   (magit-list-refnames (list "refs/heads" "refs/remotes")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]