Wire protocol DTOs for the push/pull/clone sync protocol (shared by the
CLI client and the hosted server). Not gated behind
local-repo — server-side consumers need it with default-features = false.
Wire protocol types for the Oak push/pull/clone sync protocol.
Sparse-checkout cone matching (Perforce-style partial clones). Pure path
logic with no I/O, so it is available to both the CLI client and any
server-side consumer without the local-repo feature.
Sparse-checkout cones — Perforce-style partial clones.
Views: pruned, hash-verifiable slices of a repository (partial clones and
mounts, restricted readers). Pure tree logic, no I/O.
Views — pruned, hash-verifiable slices of a repository.
Generates a closed, field-less enum together with its complete ALL list
and its stable wire string, from one table. Adding an entry here is the
only way to add a value, so ALL can never fall out of sync.
A single rename event in the server’s append-only rename log.
Returned in pull responses so other clients can replay the rename
against their local repo before applying new commits.
A stored branch row that exists but whose metadata cannot be decoded
(for example a corrupt created_at). Listing callers get one of these
per bad row instead of the whole listing failing (fb-118).
The repository trunk. Every branch ultimately lands here: a branch either
parents directly onto the trunk, or is stacked on another open branch
whose chain of parents ends at the trunk (main <- a <- b). Stacks land
bottom-up: when a stacked branch’s parent merges (or closes), the server
restacks it onto the parent’s own parent, so it eventually parents onto
the trunk again.
Promote Add+Delete pairs in changes to Renamed when their contents are
similar enough. get_content is called with each candidate’s blob hash;
returning Ok(None) (missing blob) silently skips that candidate.
Truncate a timestamp to microsecond precision — the precision of the
lowest-fidelity store a commit row must survive (Postgres TIMESTAMPTZ).
Hash preimages must only ever embed timestamps every store can reproduce.