logical.matchesfunctionno test imports itfunction matches(glob: string, path: string): booleanWhether a path (from the repository's root, with /) matches a glob.
Globs of paths, as the tables of the generators write them (commons repoctl 0003-repoctl-sync FR-001): * is the characters of one segment and ** any number of segments. A path matches a glob, and two globs overlap where some path could match both, which is what makes one generator come after another: it reads what the other writes.
import { matches, overlap } from "./glob.ts";
matches("commons/*\/LICENSE", "commons/core/LICENSE"); // true
overlap("commons/**\/suite/**", "commons/core/suite/a.test.ts"); // truelogical.matchesfunctionno test imports itfunction matches(glob: string, path: string): booleanWhether a path (from the repository's root, with /) matches a glob.
logical.overlapfunctionno test imports itfunction overlap(a: string, b: string): booleanWhether some path could match both globs.
matchesfunctionfunction matches(glob: string, path: string): booleanWhether a path (from the repository's root, with /) matches a glob.
overlapfunctionfunction overlap(a: string, b: string): booleanWhether some path could match both globs.