From: Robert Pluim <rpluim@gmail.com>
To: Luis Henriques <henrix@camandro.org>
Cc: 72059@debbugs.gnu.org
Subject: bug#72059: [PATCH] Ensure that git diffs without signature (--) are properly identified
Date: Thu, 11 Jul 2024 15:36:35 +0200 [thread overview]
Message-ID: <877cdshwyk.fsf@gmail.com> (raw)
In-Reply-To: <87h6cwm86n.fsf@orpheu.olymp> (Luis Henriques's message of "Thu, 11 Jul 2024 13:20:32 +0100")
>>>>> On Thu, 11 Jul 2024 13:20:32 +0100, Luis Henriques <henrix@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@gnu.org
Luis> mailing-list:
Luis> 87v81dmhxi.fsf@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
--
next prev parent reply other threads:[~2024-07-11 13:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 12:20 bug#72059: [PATCH] Ensure that git diffs without signature (--) are properly identified Luis Henriques
2024-07-11 13:36 ` Robert Pluim [this message]
2024-07-11 15:01 ` Luis Henriques
2024-07-12 6:34 ` Kévin Le Gouguec
2024-07-12 6:51 ` Juri Linkov
2024-07-12 8:28 ` Robert Pluim
2024-07-12 8:53 ` Luís Henriques
2024-07-12 17:55 ` Juri Linkov
2024-07-11 13:57 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877cdshwyk.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=72059@debbugs.gnu.org \
--cc=henrix@camandro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.