IF Commons GitHub

governance/limits

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-git-governance FR-003

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; // 1

Source: commons/anyfs-git/src/governance/limits.ts

3 of 3 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

caseCollisionsfunction
function 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.

Imported by 3 tests of the run (3 passed, 0 failed): the library's results

DEFAULT_MAX_OBJECT_BYTESconst
const DEFAULT_MAX_OBJECT_BYTES: number

The largest object a Git store holds unless told another limit: 50 MiB. Larger files belong in a store made for them; large file storage is not part of this library.

Imported by 3 tests of the run (3 passed, 0 failed): the library's results

gitPathProblemsfunction
function 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.

Imported by 3 tests of the run (3 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.