GNU bug report logs -
#72059
[PATCH] Ensure that git diffs without signature (--) are properly identified
Previous Next
Reported by: Luis Henriques <henrix <at> camandro.org>
Date: Thu, 11 Jul 2024 13:10:03 UTC
Severity: normal
Tags: patch
Merged with 72058
Fixed in version 31.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi!
[Resending as I don't see message in the list after a few hours.]
I'd like to have git-format-patch diffs to be properly identified when I'm
using Gnus to read mailing-lists. It mostly works fine, *if* the
(inlined) patches include a signature at the end ('--'). If the signature
is missing then the patch isn't identified as such.
Since all the other diff formats in mm-uu-type-alist don't have the
'end-point' I thought it would be fine to also remove it from the
'git-format-patch'.
The issue I'm trying to fix can be easily seen in Gnus by comparing two
emails with the following message-ids from the emacs-devel <at> gnu.org
mailing-list:
87v81dmhxi.fsf <at> orpheu.olymp
20240702155100.2150717-1-brennan <at> umanwizard.com
(These emails can be accessed by entering the Gnus group, hitting 'j'
(gnus-summary-goto-article) and yanking the above message-ids.)
Cheers,
--
Luís
[0001-Ensure-that-git-diffs-without-signature-are-properly.patch (text/x-patch, inline)]
From fb9a1413655837607b2ed91d11d5cb2e3ba99415 Mon Sep 17 00:00:00 2001
From: Luis Henriques <henrix <at> camandro.org>
Date: Thu, 11 Jul 2024 10:02:04 +0100
Subject: [PATCH] Ensure that git diffs without signature (--) are properly
identified
* lisp/gnus/mm-uu.el (mm-uu-type-alist): Remove 'end-point' from
git-format-patch diffs so that diffs without signature can be identified.
---
lisp/gnus/mm-uu.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el
index 3c7e3cbdf1af..f5d553bd0892 100644
--- a/lisp/gnus/mm-uu.el
+++ b/lisp/gnus/mm-uu.el
@@ -173,7 +173,7 @@ mm-uu-type-alist
,#'mm-uu-diff-test)
(git-format-patch
"^diff --git "
- "^-- "
+ nil
,#'mm-uu-diff-extract
nil
,#'mm-uu-diff-test)
This bug report was last modified 351 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.