caseCollisionsfunctionfunction caseCollisions(paths: Iterable<Path>): readonly (readonly Path[])[]The groups of paths that differ only by case: a computer that does not tell case apart holds one of each group.
What a Git store will hold: the largest object (a refusal that names the limit, never a truncation), and the names Git treats specially or that two computers read differently: the .git component in every spelling a file system gives it, and paths that differ only by case. Pure: the checks are functions of text.
import { gitPathProblems, caseCollisions } from "./limits.ts";
import { parsePath } from "@intellectual-frontiers/anyfs/governance";
const p = parsePath("a/.GIT/config");
p.kind === "ok" && gitPathProblems(p.value).length; // 1caseCollisionsfunctionfunction caseCollisions(paths: Iterable<Path>): readonly (readonly Path[])[]The groups of paths that differ only by case: a computer that does not tell case apart holds one of each group.
const DEFAULT_MAX_OBJECT_BYTES: numberThe largest object a Git store holds unless told another limit: 25 MiB. Larger files belong in a store made for them; large file storage is not part of this library.
gitPathProblemsfunctionfunction gitPathProblems(path: Path): readonly string[]What makes a path unfit for a Git repository: one sentence for each reason, none where the path is fit.