Expand description
Proven Git-object aliases and byte-exact manifest path identities.
Git object IDs hash a blob <len>\0 header as well as file bytes, while
content-addressed artifacts use BLAKE3 of the file bytes. This module keeps
that distinction explicit: aliases are accepted only after recomputing the
Git blob ID from the exact bytes.
Structs§
- Alias
Store - SQLite storage for proven
(git_oid -> blake3(bytes))aliases. - Excluded
Path Classes - Excluded path totals printed with a zero-read checkout report.
- GitOid
- A SHA-1 Git object ID represented as its 20 raw bytes, not text.
- Manifest
- A single view manifest with a fixed path identity encoding version.
- Manifest
Record - One byte-exact manifest path and its tagged entry.
- Manifest
Sqlite Store - SQLite representation for raw manifest paths.
rel_pathis deliberately a BLOB column so SQLite never applies text collation or Unicode normalization. - Plane
Keys - A manifest’s two optional plane keys for a regular path.
- Tracked
Path - A Git-tracked path with the metadata used to decide whether it can be aliased.
- Zero
Read Checkout Report - The numerator, denominator, and every excluded path class for zero-read checkout reporting.
Enums§
- Alias
Error - Errors raised while proving aliases or preserving path identity.
- Alias
Skip - Why a candidate was deliberately not entered into the alias table.
- Alias
Write - The immutable result of attempting to seed one alias.
- GitMode
- Git tree modes that determine whether a path can be aliased.
- Manifest
Entry - The tagged manifest entry schema. Paths live beside entries as raw BLOBs.
Constants§
- PATH_
IDENTITY_ VERSION - The manifest format that stores paths as exact, slash-separated bytes.
Functions§
- git_
blob_ oid - Computes Git’s SHA-1 blob object ID from exact file bytes.
- head_
tree_ entries - Lists
HEADpaths from Git metadata without opening working-tree files. - is_
lfs_ pointer - Returns whether
bytesare an LFS pointer. This conservative secondary check protects aliases even if a caller failed to propagatefilter=lfs.