Skip to main content

Module snapshot

Module snapshot 

Source

Structs§

CommitIdentity
One commit identity and its recorded time. The offset does not adjust seconds.
CommitOptions
Metadata for one root commit. Message bytes are preserved, including newlines. Names and emails must be nonempty, with no control bytes or angle brackets; messages may contain newlines but not NUL. Invalid metadata returns InvalidObject.
Entry
File
Snapshot
A tree hierarchy and one deterministic commit with no parents. All data and storage are borrowed; construction never allocates.
SnapshotBuilder
Incrementally collect root entries in caller-owned slots, without allocation. Push accepts any arrival order; borrowed subtrees must already be assembled. Nested validation and tree/commit buffer sizing are checked when finishing.

Enums§

EntryKind
Borrowed contents and mode of a tree entry. Symlink contents are target bytes.

Constants§

MAX_TREE_DEPTH
Maximum number of tree levels, including the root, to bound recursive stack use.