Skip to main content

Module widgets

Module widgets 

Source
Expand description

Git-specific widgets layered on top of saudade’s generic set.

Modules§

layout
Pure geometry for journey’s two screens.

Structs§

CommitList
CommitRow
One commit’s worth of row content.
DiffView
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).
GraphRow
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
SearchBar
Shared
Shared, interior-mutable handle to a widget that lives in the tree.
Shell

Enums§

DiffMode
Whether the diff view offers line-range staging, and which way. The browse view stays DiffMode::Plain; the commit view sets DiffMode::Stage for an unstaged file and DiffMode::Unstage for a staged one.

Functions§

compute_graph
Compute the lane layout for commits, each (sha, parent_shas), in reverse-topological (newest-first) order.