Re: [PATCH -v2] MAINTAINERS: Fix Intel TDX kernel file patterns
From: Joe Perches
Date: Sun Nov 01 2026 - 14:55:12 EST
On Sun, 2026-11-01 at 11:37 -0800, Borislav Petkov wrote:
> On Sun, Nov 01, 2026 at 10:59:24AM -0800, Joe Perches wrote:
> > Not completely no.
>
> Well, whatever you do, this needs some documentation so that it is perfectly
> clear to people using patterns.
>
> Something perhaps like this below. You probably can come up with a better
> formulation - my only angle is to make this as easier and as clear to users of
> the pattern stuff as possible.
Thanks.
> diff --git a/MAINTAINERS b/MAINTAINERS
[]
> @@ -30,13 +30,16 @@ Descriptions of section entries and preferred order
> See Documentation/maintainer/maintainer-entry-profile.rst for details.
> T: *SCM* tree type and location.
> Type is one of: git, hg, quilt, stgit, topgit
> - F: *Files* and directories wildcard patterns.
> + F: *Files* and directories wildcard patterns. The matching strategy
> + mimicks git's pathspec shell glob patterns with some exceptions.
> A trailing slash includes all files and subdirectory files.
> F: drivers/net/ all files in and below drivers/net
> F: drivers/net/* all files in drivers/net, but not below
> F: */net/* all files in "any top level directory"/net
> F: fs/**/*foo*.c all *foo*.c files in any subdirectory of fs
> - One pattern per line. Multiple F: lines acceptable.
> + One pattern per line. Multiple F: lines acceptable. One way to
> + verify the pattern is using something like
> + git ls-files -- <pattern>
Clarity is good.
Perhaps <pattern> needs to be '<pattern>' to avoid
command-line expansion.
I do think it was already generally understood though as
there was just one exception to the pattern match style
in the existing more than ten thousand ^[FX]: MAINTAINER
entries.