diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2024-11-22 15:26:42 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2024-11-22 15:26:42 +0100 |
| commit | 621b67fc7e0663f262d17c8e975e7ebbe8fefbbe (patch) | |
| tree | 956f3f0a5a919a48866238d6cacbde1ddcd2c688 /lisp/magit-git.el | |
| parent | 8a6ca692fea144521db856d4b096cc5d875863cb (diff) | |
magit-list-special-refnames: Cosmetics
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index 810bc8d..88402ab 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"))) |
