Expand description
Git-specific widgets layered on top of saudade’s generic set.
Modules§
- layout
- Pure geometry for journey’s two screens.
Structs§
- Commit
List - Commit
Row - One commit’s worth of row content.
- Diff
View - A diff pane, read-only in browse mode and line-stageable in commit mode.
- Graph
- The full graph plus the number of lanes ever active (for gutter sizing).
- Graph
Row - Per-row graph geometry. Columns are lane indices; the renderer maps them to
x positions. Segments are
(column_at_edge, column_at_center)for the top half and(column_at_center, column_at_edge)for the bottom half. - Heading
- Search
Bar - Shared
- Shared, interior-mutable handle to a widget that lives in the tree.
- Shell
Enums§
- Diff
Mode - Whether the diff view offers line-range staging, and which way. The browse
view stays
DiffMode::Plain; the commit view setsDiffMode::Stagefor an unstaged file andDiffMode::Unstagefor a staged one.
Functions§
- compute_
graph - Compute the lane layout for
commits, each(sha, parent_shas), in reverse-topological (newest-first) order.