[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 6067f92c01: magit-diff-wash-signature: Delete n
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/git-commit 6067f92c01: magit-diff-wash-signature: Delete new "No signature" line |
|
Date: |
Tue, 2 May 2023 10:02:19 -0400 (EDT) |
branch: elpa/git-commit
commit 6067f92c0195616707b25e23c2d4c0dd81928fd8
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-diff-wash-signature: Delete new "No signature" line
---
lisp/magit-diff.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index a2f2e6affe..99bb21db2e 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -2184,7 +2184,10 @@ section or a child thereof."
(user-error "No diffstat in this buffer")))
(defun magit-diff-wash-signature (object)
- (when (looking-at "^gpg: ")
+ (cond
+ ((looking-at "^No signature")
+ (delete-line))
+ ((looking-at "^gpg: ")
(let (title end)
(save-excursion
(while (looking-at "^gpg: ")
@@ -2204,7 +2207,7 @@ section or a child thereof."
(magit-insert-heading title))
(goto-char end)
(set-marker end nil)
- (insert "\n")))))
+ (insert "\n"))))))
(defun magit-diff-wash-diffstat ()
(let (heading (beg (point)))
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/git-commit 6067f92c01: magit-diff-wash-signature: Delete new "No signature" line,
ELPA Syncer <=