[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <42ff6b8d-0b7c-12e0-4648-a9232b0f577c@leemhuis.info>
Date: Sat, 27 Nov 2021 20:32:37 +0100
From: Thorsten Leemhuis <linux@...mhuis.info>
To: Eric Wong <e@...24.org>
Cc: workflows@...r.kernel.org, linux-kernel@...r.kernel.org,
Konstantin Ryabitsev <konstantin@...uxfoundation.org>,
Jonathan Corbet <corbet@....net>, git@...r.kernel.org,
Linus Walleij <linus.walleij@...aro.org>,
Kees Cook <keescook@...omium.org>
Subject: Re: [RFC PATCH v1 1/1] docs: add the new commit-msg tags 'Reported:'
and 'Reviewed:'
On 26.11.21 18:11, Eric Wong wrote:
> Thorsten Leemhuis <linux@...mhuis.info> wrote:
>> Ccing Linus Walleij, who added this, and Kees, who apparently came up
>> with this originally.
>>
>> On 23.11.21 19:52, Eric Wong wrote:
>>> Thorsten Leemhuis <linux@...mhuis.info> wrote:
>>>> diff --git a/Documentation/maintainer/configure-git.rst b/Documentation/maintainer/configure-git.rst
>>>> index 80ae5030a590..8429d45d661c 100644
>>>> --- a/Documentation/maintainer/configure-git.rst
>>>> +++ b/Documentation/maintainer/configure-git.rst
>>>
>>> <snip>, +cc git@...r
>>>
>>>> @@ -56,7 +56,7 @@ by adding the following hook into your git:
>>>> $ cat >.git/hooks/applypatch-msg <<'EOF'
>>>> #!/bin/sh
>>>> . git-sh-setup
>>>> - perl -pi -e 's|^Message-Id:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
>>>> + perl -pi -e 's|^Message-Id:\s*<?([^>]+)>?$|Reviewed: https://lore.kernel.org/r/$1|g;' "$1"
>>>
>>> Side note: that regexp should match "Message-ID" case-insensitively.
>>> git send-email is an outlier in its capitalization of "Message-Id",
>>> most RFCs capitalize it "Message-ID", as do common MUAs.
>>
>> Argh :-/
>>
>> It's still totally unclear if that or a similar patch will be accepted.
>> And even if it is: the "don't do two different things in one commit"
>> rule might not be that strict enforced when it comes to the Linux
>> kernel's docs, but changing this regexp as part of another patch crosses
>> the line.
>>
>> IOW: we afaics need a separate patch to make the regexp
>> case-insensitively. Eric, do you want to submit one, as you brought it
>> up? Or are there any other volunteers?
>
> I suggest you turn this into a 2 patch series to avoid conflicts
> for a trivial change. I don't even have a kernel worktree handy
> at the moment (ENOSPC :x)
:-D
Will do this in a couple of days, unless Linus or Kees speak up.
Just to be sure I'll do what you expect to be done: I assume you want to see
it changed like this?
- perl -pi -e 's|^Message-Id:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
+ perl -pi -e 's|^Message-I[dD]:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
Or are there even more variants of Message-ID out there known that
need to be taken into account?
Ciao, Thorsten
Powered by blists - more mailing lists