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

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

[nongnu] elpa/git-commit da23111429 06/15: Use seq-remove instead of -re


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit da23111429 06/15: Use seq-remove instead of -remove-first
Date: Mon, 31 Jul 2023 10:00:17 -0400 (EDT)

branch: elpa/git-commit
commit da23111429a449834ef163f2e13391e74ed0c31a
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Use seq-remove instead of -remove-first
    
    Of course this is not an exact substitute — none exits — but
    that doesn't matter here because we know the list contains at most
    one matching element and the list is short enough for the needless
    work to be insignificant.
---
 lisp/magit-commit.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-commit.el b/lisp/magit-commit.el
index d7c5affe0f..842a87dfb6 100644
--- a/lisp/magit-commit.el
+++ b/lisp/magit-commit.el
@@ -314,9 +314,8 @@ depending on the value of option 
`magit-commit-squash-confirm'."
               (magit-with-editor
                 (magit-call-git
                  "commit" "--no-gpg-sign"
-                 (-remove-first
-                  (apply-partially #'string-prefix-p "--gpg-sign=")
-                  args)))
+                 (seq-remove (apply-partially #'string-prefix-p "--gpg-sign=")
+                             args)))
             (magit-run-git-with-editor "commit" args))
           t) ; The commit was created; used by below lambda.
       (let ((winconf (and magit-commit-show-diff



reply via email to

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