Re: [PATCH] get_maintainer: add ** globstar pattern support
From: Joe Perches
Date: Sun Mar 01 2026 - 22:59:39 EST
On Mon, 2026-03-02 at 03:53 +0100, Matteo Croce wrote:
> Add support for the ** globstar operator in MAINTAINERS F: and X: patterns,
> matching any number of path components (like Python's ** glob).
Maybe when you add your ** entry to MAINTAINERS, update the
file pattern block description to include the new ** glob.
Maybe something like:
---
diff --git a/MAINTAINERS b/MAINTAINERS
index 14899f1de77ed..0e7059f9765cb 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -35,6 +35,7 @@ Descriptions of section entries and preferred order
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.
X: *Excluded* files and directories that are NOT maintained, same
rules as F:. Files exclusions are tested before file matches.