diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2024-06-23 15:35:19 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2024-06-23 15:35:19 +0200 |
| commit | 196abe727054a440bf6262c5c254ad4565cbaa66 (patch) | |
| tree | 14ccce8b6aa3b8f837c1413958f0412500683470 /lisp/git-commit.el | |
| parent | be549268313bdcc6008285312a4ac5367d3b4402 (diff) | |
Use string-join instead of mapconcat
Diffstat (limited to 'lisp/git-commit.el')
| -rw-r--r-- | lisp/git-commit.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/git-commit.el b/lisp/git-commit.el index 7a0bb90..f662d38 100644 --- a/lisp/git-commit.el +++ b/lisp/git-commit.el @@ -1235,9 +1235,8 @@ Added to `font-lock-extend-region-functions'." ;; because in repositories have thousands of ;; branches that would be very slow. See #4353. (format "\\(\\(?:%s\\)\\|\\)\\([^']+\\)" - (mapconcat #'identity - (magit-list-local-branch-names) - "\\|"))) + (string-join (magit-list-local-branch-names) + "\\|"))) "\\([^']*\\)")) (setq-local font-lock-multiline t) (add-hook 'font-lock-extend-region-functions |
