From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luis Henriques Newsgroups: gmane.emacs.bugs Subject: bug#72058: [PATCH] Ensure that git diffs without signature (--) are properly identified Date: Thu, 11 Jul 2024 10:23:51 +0100 Message-ID: <87msmomgd4.fsf@orpheu.olymp> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27219"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Luis Henriques To: 72058@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 11 15:10:27 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sRtZ5-0006pA-Ce for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Jul 2024 15:10:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRtYl-0001ob-EM; Thu, 11 Jul 2024 09:10:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRtYh-0001bQ-Pa for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2024 09:10:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRtYh-0001ow-Fw for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2024 09:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRtYh-0003gQ-2o for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2024 09:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Luis Henriques Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jul 2024 13:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72058 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172070336514074 (code B ref -1); Thu, 11 Jul 2024 13:10:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jul 2024 13:09:25 +0000 Original-Received: from localhost ([127.0.0.1]:51250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRtY3-0003eo-MU for submit@debbugs.gnu.org; Thu, 11 Jul 2024 09:09:25 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRq1z-0006Bk-7T for submit@debbugs.gnu.org; Thu, 11 Jul 2024 05:24:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRq1z-0005GU-AJ for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2024 05:24:03 -0400 Original-Received: from mout-p-102.mailbox.org ([80.241.56.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sRq1v-0002Gm-RJ for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2024 05:24:03 -0400 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4WKTn70yZdz9sc0; Thu, 11 Jul 2024 11:23:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=camandro.org; s=MBO0001; t=1720689835; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=bb0bCSjZ1I8xdGnn6yWljv4OS7d31w6jKHnaZ14LtFU=; b=ExKFMnoNx757vgZsPpPIN9VbIOsv8RYJF+Tdef9EPLFSrem8OjJ8EP2vqKweUiDC7QCrHC NRiJcqHYjL2p2TLlXT84c5GFzgsi4LLuk1ddbKQ2rVmyAqelP6VfbXzkPmebH4lIyUXg4X hFUmE2di7u4GKqzBSbm2qM9cSGevbM/SB8GQoFKi//LTl526csa07HMDvx9XFA370rBdUf lqanADZHqYQqUmZ6cRDpndSBh8pjAlLRM2B1LYxjSxW+mRxq6j30lKgheh2jyTmxbcKVdq YJ285TmOUA5OGiUehEtPXTDqk3Zok2nR1Ar4kkFfehe/PxuI2dOchsDThmpGWA== Received-SPF: pass client-ip=80.241.56.152; envelope-from=henrix@camandro.org; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 11 Jul 2024 09:09:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288732 Archived-At: --=-=-= Content-Type: text/plain 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.) --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Ensure-that-git-diffs-without-signature-are-properly.patch >From fb9a1413655837607b2ed91d11d5cb2e3ba99415 Mon Sep 17 00:00:00 2001 From: Luis Henriques 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) --=-=-=--