Expand description
Facade tying the VCS backend, session, and store together: the one entry point the TUI and MCP layers consume.
Structs§
- Binary
Sides - Both sides of a binary file;
Nonefor a side that does not exist. - File
Snapshot - One file as the file view reads it: worktree text plus per-line blame.
- Refreshed
- One landed off-thread refresh.
- Review
- Walkthrough
Files - 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§
- Binary
Side - One side of a binary file, as
Review::compute_binary_sidesread it. - Read
First - Which copy of a walkthrough’s file
Review::compute_walkthrough_filesreads first, falling back to the other. - Review
Error
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_headis the PR’s own(merge_base, head), resolved by the caller since a PR’s range lives in app state;Nonerejects an unresolved PR, so it is never silently read as unchanged.WorkingTree,Walkthrough, andAgainstcarry no pinned diff of their own and read back empty.