diff options
| author | Matteo Croce <technoboy85@gmail.com> | 2026-03-02 11:38:22 +0100 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-03-27 21:19:38 -0700 |
| commit | 420849332f9f9f1ce6ff142868ae2e6ae9f98f65 (patch) | |
| tree | 04b4bf4b762e3f59dde9128ca533b7939047cb83 /tools/perf/scripts/python | |
| parent | defec2ca7cd743c9b8a29be5012ad7381a5ecbb3 (diff) | |
get_maintainer: add ** glob pattern support
Add support for the ** glob operator in MAINTAINERS F: and X: patterns,
matching any number of path components (like Python's ** glob).
The existing * to .* conversion with slash-count check is preserved. **
is converted to (?:.*), a non-capturing group used as a marker to bypass
the slash-count check in file_match_pattern(), allowing the pattern to
cross directory boundaries.
This enables patterns like F: **/*[_-]kunit*.c to match files at any depth
in the tree.
Link: https://lkml.kernel.org/r/20260302103822.77343-1-teknoraver@meta.com
Signed-off-by: Matteo Croce <teknoraver@meta.com>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
