Expand description
Fast CODEOWNERS pattern matching with shape-based specialization.
Every CODEOWNERS pattern is classified at compile time into one of a
handful of shapes, and each shape gets its own matcher. Typical monorepo
CODEOWNERS files are ~80% *.ext extension patterns and directory
prefixes — those get raw ends_with / starts_with on bytes, no glob
engine involvement.
For the minority of truly globby patterns (src/**/*.rs), we fall through
to fast_glob.
Enums§
- Compiled
Pattern - A CODEOWNERS pattern, pre-processed for repeated fast matching.
Functions§
- pattern_
matches - Simple glob pattern matching for CODEOWNERS patterns
- pattern_
subsumes - Check if pattern
ais subsumed by patternb(i.e., everythingamatches,balso matches). If true, andbcomes afterain CODEOWNERS, thenais a dead rule.