External email: Use caution opening links or attachments
On Mon, 2020-07-27 at 15:58 -0500, Daniel Dadap wrote:
Add an additional regular expression to detect updates to thePlease cc at least LKML.
MAINTAINERS file as reported in the unified diffs generated by
`git format-patch`. This suppresses the "does MAINTAINERS need
updating" message when MAINTAINERS is updated with this format.
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl[]
@@ -2621,7 +2621,8 @@ sub process {I don't believe this works well as any test
# Check if MAINTAINERS is being updated. If so, there's probably no need to
# emit the "does MAINTAINERS need updating?" message on file add/move/delete
- if ($line =~ /^\s*MAINTAINERS\s*\|/) {
+ if ($line =~ /^\s*MAINTAINERS\s*\|/ ||
+ $line =~ /^[-+]{3} [ab]\/MAINTAINERS$/) {
for a file modification to MAINTAINERS occurs
after the block that would show a diffstat
where the warning is emitted.