Expand description
Durable journal, locks, and recovery for griz edits.
The store is the only part of griz that writes source files. Every write is
journaled as applying before the first rename, so an interrupted apply is
finished by the next process that opens the store.
Structs§
- Absorbed
- What an absorb did.
- Apply
Request - How to apply a plan.
- Conflict
Region - A conflicting line range in
current, 1-based and inclusive. - File
Write - One file an operation writes.
- Merge
Conflict - One file a merge attempt could not resolve, carrying every text a caller
needs to look at:
base,planned, andcurrentare blob identifiers readable withget. - Operation
- One apply or undo.
- Page
- One page of operations, newest first.
- Path
Resolver - Directory and file-alias identities retained for one batch of paths.
- Plan
Record - A stored plan.
- Restore
Scope - The tree a restore is scoped to:
rootbounds the span first;pathsnarrows it further within that root. - Restores
- The span an undo restored in one operation.
- Selection
- Which part of a plan to keep.
- Store
- Durable griz state for one home directory.
- Undo
Request - How to undo an operation.
Enums§
- Claim
- What a key already means.
- OnStale
- What to do when a file changed after it was planned.
- Operation
Kind - What an operation did. What an operation did.
- Operation
State - Where an operation is in its life.
- Store
Error - Why a store call failed.
Constants§
- HOME_
ENV - Environment variable naming the state directory.
Functions§
- blob_id
- The addressable identifier for the blob with fingerprint
hash. - destination_
path - Resolves a write’s parent directory, retaining its final directory entry.
- directory_
path - Resolves existing directory aliases, retaining a missing directory suffix.
- parse_
blob_ id - The fingerprint
idaddresses, when it is a blob identifier.