[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ac2587d3d4b7ce87e8922380e36d7864bfb54262.camel@perches.com>
Date: Thu, 19 Aug 2021 15:17:15 -0700
From: Joe Perches <joe@...ches.com>
To: Denis Efremov <efremov@...ux.com>, linux-kselftest@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, linux-block@...r.kernel.org,
Jens Axboe <axboe@...nel.dk>, Jiri Kosina <jkosina@...e.cz>,
Willy Tarreau <w@....eu>
Subject: Re: [RFC PATCH 1/5] checkpatch: improve handling of revert commits
On Thu, 2021-08-19 at 22:52 +0300, Denis Efremov wrote:
> Hi,
>
> Why do you want to add "if ($orig_desc =~ /^".*"$/);" here? and not just substr($orig_desc, 2, -2);?
Because commit descriptions sometimes to not have quotes like
commit <deadbeef> (Multiple word description)
btw:
I tested the last proposal with this script:
$ git log --grep="commit [0-9a-f]" -i --format=%h -1000 | \
while read commit ; do \
echo $commit; \
./scripts/checkpatch.pl --git --no-summary --quiet --types=GIT_COMMIT_ID $commit ; \
done
and there are still a fair number of ERRORs.
And I'm not sure if this particular ERROR is that useful overall.
Powered by blists - more mailing lists