diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2022-04-22 18:14:46 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2022-04-22 18:14:46 +0200 |
| commit | 6cd8bcaf188aaa3bf5fd5fddaf47e63193f150d3 (patch) | |
| tree | cfc847c0f5d9e959448f79abf311966e50469dc0 /lisp/magit-commit.el | |
| parent | 3cfc8458e14c705afdfbeb7dcd3d3f43d7479344 (diff) | |
Use string-prefix-p and string-suffix-p
Diffstat (limited to 'lisp/magit-commit.el')
| -rw-r--r-- | lisp/magit-commit.el | 2 |
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. |
