Skip to main content

Module review

Module review 

Source
Expand description

Facade tying the VCS backend, session, and store together: the one entry point the TUI and MCP layers consume.

Structs§

BinarySides
Both sides of a binary file; None for a side that does not exist.
FileSnapshot
One file as the file view reads it: worktree text plus per-line blame.
Refreshed
One landed off-thread refresh.
Review
WalkthroughFiles
The result of Review::compute_walkthrough_files: every file it could read, plus whether the revision it was asked to pin to still resolves.

Enums§

BinarySide
One side of a binary file, as Review::compute_binary_sides read it.
ReadFirst
Which copy of a walkthrough’s file Review::compute_walkthrough_files reads first, falling back to the other.
ReviewError

Constants§

MAX_PREVIEW_BYTES
A preview reads at most this many bytes of one side (32 MiB).

Functions§

pinned_diff
The freshly fetched diff for a commit, range, or PR review source, straight from the backend: the one place each variant’s vcs call is made, whether the caller reads it on the UI thread or off it. pr_head is the PR’s own (merge_base, head), resolved by the caller since a PR’s range lives in app state; None rejects an unresolved PR, so it is never silently read as unchanged. WorkingTree, Walkthrough, and Against carry no pinned diff of their own and read back empty.