[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 433cf8124d 05/11: git-commit--trailer-regexp: M
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 433cf8124d 05/11: git-commit--trailer-regexp: Match known trailers even if lacking mail |
Date: |
Fri, 27 Oct 2023 19:00:36 -0400 (EDT) |
branch: elpa/git-commit
commit 433cf8124d665ad96019f20c0258406c73922604
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
git-commit--trailer-regexp: Match known trailers even if lacking mail
Until now we only highlighted trailers that end with "<mail>" to
avoid false-positives. Now we additionally look for the known
trailers listed in `git-commit-trailers', which doesn't increase
the risk by much.
---
lisp/git-commit.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/git-commit.el b/lisp/git-commit.el
index 7d890ebbe1..1451662d30 100644
--- a/lisp/git-commit.el
+++ b/lisp/git-commit.el
@@ -989,7 +989,8 @@ something like:
(setq git-commit-need-summary-line nil))))")
(defun git-commit--trailer-regexp ()
- (format "^\\(%s:\\)\\( .*\\)" (regexp-opt git-commit-trailers)))
+ (format "^\\(\\(%s:\\)\\( .*\\)\\|[-a-zA-Z]+: [^<\n]+? <[^>\n]+>\\)"
+ (regexp-opt git-commit-trailers)))
(defun git-commit-summary-regexp ()
(if git-commit-need-summary-line
- [nongnu] elpa/git-commit updated (2ca552e3c4 -> 16ddcd7cc8), ELPA Syncer, 2023/10/27
- [nongnu] elpa/git-commit f9e56048a2 03/11: git-commit--insert-trailer: New function, ELPA Syncer, 2023/10/27
- [nongnu] elpa/git-commit 66e9a068c8 04/11: git-commit--trailer-regexp: New function, ELPA Syncer, 2023/10/27
- [nongnu] elpa/git-commit 433cf8124d 05/11: git-commit--trailer-regexp: Match known trailers even if lacking mail,
ELPA Syncer <=
- [nongnu] elpa/git-commit 546071e888 09/11: git-commit-mode-map: Factor out redundant bindings, ELPA Syncer, 2023/10/27
- [nongnu] elpa/git-commit b436ad3830 01/11: git-commit: Replace the term "(pseudo) header" with "trailer", ELPA Syncer, 2023/10/27
- [nongnu] elpa/git-commit 6f1f1a3000 02/11: git-commit: Mention trailer insertion menu in the commentary, ELPA Syncer, 2023/10/27
- [nongnu] elpa/git-commit 16ddcd7cc8 11/11: git-commit: Restore detailed trailer fontification, ELPA Syncer, 2023/10/27
- [nongnu] elpa/git-commit 21be0a9fc7 07/11: git-commit: Order trailers the same in various places, ELPA Syncer, 2023/10/27
- [nongnu] elpa/git-commit efd8a8909e 06/11: git-commit--insert-trailer: Use git-commit--trailer-regexp, ELPA Syncer, 2023/10/27
- [nongnu] elpa/git-commit cd6a356d73 08/11: git-commit-mode-menu: Drop unnecessary :active keyword, ELPA Syncer, 2023/10/27
- [nongnu] elpa/git-commit f6d66c1b20 10/11: git-commit: Separate options' docstring bodies from first lines, ELPA Syncer, 2023/10/27