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
Message #8 received at 72059 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Thu, 11 Jul 2024 13:20:32 +0100, Luis Henriques <henrix <at> camandro.org> said:
Luis> Hi!
Luis> [Resending as I don't see message in the list after a few hours.]
I see both those messages. There is moderation for unsubscribed users,
so sometimes there is lag.
Luis> I'd like to have git-format-patch diffs to be properly identified when I'm
Luis> using Gnus to read mailing-lists. It mostly works fine, *if* the
Luis> (inlined) patches include a signature at the end ('--'). If the signature
Luis> is missing then the patch isn't identified as such.
Luis> Since all the other diff formats in mm-uu-type-alist don't have the
Luis> 'end-point' I thought it would be fine to also remove it from the
Luis> 'git-format-patch'.
git-format-patch only produces patches like that if you pass it
'--no-signature', I think.
Luis> The issue I'm trying to fix can be easily seen in Gnus by comparing two
Luis> emails with the following message-ids from the emacs-devel <at> gnu.org
Luis> mailing-list:
Luis> 87v81dmhxi.fsf <at> orpheu.olymp
That one actually looks like just 'git diff' rather than 'git format-patch'
Iʼm trying to work out the benefit here compared to the status quo vs
the risk of breaking something. If Gnus doesnʼt identify such messages
as containing patches, you donʼt get the in-article buttons, but you
can still pipe the message to 'git apply'.
Also, how does this work for messages containing multiple patches? Is
detection of just the start of each patch enough?
Maybe adding a new detection method would be better?
Robert
--
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.