aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-commit.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2022-04-22 18:14:46 +0200
committerJonas Bernoulli <jonas@bernoul.li>2022-04-22 18:14:46 +0200
commit6cd8bcaf188aaa3bf5fd5fddaf47e63193f150d3 (patch)
treecfc847c0f5d9e959448f79abf311966e50469dc0 /lisp/magit-commit.el
parent3cfc8458e14c705afdfbeb7dcd3d3f43d7479344 (diff)
Use string-prefix-p and string-suffix-p
Diffstat (limited to 'lisp/magit-commit.el')
-rw-r--r--lisp/magit-commit.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/magit-commit.el b/lisp/magit-commit.el
index 8eabac5..581f5bb 100644
--- a/lisp/magit-commit.el
+++ b/lisp/magit-commit.el
@@ -370,7 +370,7 @@ depending on the value of option `magit-commit-squash-confirm'."
(magit-call-git
"commit" "--no-gpg-sign"
(-remove-first
- (apply-partially #'string-match-p "\\`--gpg-sign=")
+ (apply-partially #'string-prefix-p "--gpg-sign=")
args)))
(magit-run-git-with-editor "commit" args))
t) ; The commit was created; used by below lambda.