Skip to main content

Module blame

Module blame 

Source
Expand description

Storage-neutral resumable blame slices.

Heddle owns ancestry walk, path lookup, first-parent merge policy, LCS tie-breaking, origin finalization, and provenance invariants. Callers own job rows, leases, and persistence of the returned frontier.

Structs§

BlameFrontierGroup
Canonical LIFO frontier group. Replay of the same group is deterministic.
BlameFrontierRecord
One unfinalized hunk still walking toward older ancestors.
BlameLineMap
Compact run mapping state-file lines onto target-file lines.
BlameSliceLimits
Caps for one super::advance_file_blame_slice call.
BlameTarget
Prepared target file a persisted frontier may attribute.
OriginRange
Finalized target-line range. Each target line is emitted at most once.

Enums§

BlamePreparation
Outcome of preparing the target path before any slice walk.
BlameSliceAdvance
Bounded slice result. Callers persist this only on success.
BlameSliceError
Typed slice failure. Missing objects are distinct from budget exhaustion.

Functions§

advance_file_blame_slice
Compute one deterministic slice. On success the result is complete; on error callers must not persist half-emitted mutations.
blame_file
Walk path at state by repeating advance_file_blame_slice until the frontier is exhausted, then finalize. This is not an eager full-file shim; each slice stays inside limits.
finalize_file_provenance
Assemble FileProvenance from finalized ranges without holding history.
origin_from_state
prepare_file_blame
Build the first frontier for path at state without walking parents.