* bug#72058: [PATCH] Ensure that git diffs without signature (--) are properly identified
@ 2024-07-11 9:23 Luis Henriques
0 siblings, 0 replies; only message in thread
From: Luis Henriques @ 2024-07-11 9:23 UTC (permalink / raw)
To: 72058; +Cc: Luis Henriques
[-- Attachment #1: Type: text/plain, Size: 813 bytes --]
Tags: patch
Hi!
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@gnu.org
mailing-list:
87v81dmhxi.fsf@orpheu.olymp
20240702155100.2150717-1-brennan@umanwizard.com
(These emails can be accessed by entering the Gnus group, hitting 'j'
(gnus-summary-goto-article) and yanking the above message-ids.)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Ensure-that-git-diffs-without-signature-are-properly.patch --]
[-- Type: text/patch, Size: 795 bytes --]
From fb9a1413655837607b2ed91d11d5cb2e3ba99415 Mon Sep 17 00:00:00 2001
From: Luis Henriques <henrix@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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-11 9:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-11 9:23 bug#72058: [PATCH] Ensure that git diffs without signature (--) are properly identified Luis Henriques
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).