Re: [PATCH v2 1/2] get_maintainer: only use THE REST as a fallback

From: Joe Perches

Date: Tue Oct 20 2026 - 11:53:29 EST


On 2026-10-20 08:35, Konstantin Ryabitsev wrote:
THE REST matches every file in the tree via "F: *" and "F: */", so
get_maintainer.pl currently adds linux-kernel@xxxxxxxxxxxxxxx to every
patch, regardless of whether the touched files already belong to a
subsystem with its own mailing list.

Only add THE REST for a file when no other matching section provides a
mailing list that get_maintainer.pl would actually output. Lists marked
"subscribers-only" are omitted unless --s is given, and lists marked
"moderated" are omitted with --no-moderated, so such lists don't count
as a destination in those cases. Files that match no section, or only
sections without such a list, still fall back to THE REST, so every
patch keeps reaching at least one known-public mailing list.

Signed-off-by: Konstantin Ryabitsev <konstantin@xxxxxxxxxxxxxxxxxxx>
---

I don't disagree that this is useful but v2: no changelog

Perhaps there's a simpler and more generic mechanism. I'll play with it for a couple days.