Skip to main content

Module render

Module render 

Source
Expand description

Pure human renderers for worktree rows and status blocks (spec §7).

Structs§

RenderCtx
Context for rendering a list cell.

Functions§

ahead_behind_cell
The ahead/behind cell: ↑N ↓M, or when there is no upstream.
branch_display
The branch display: the branch name, or (HEAD detached @ <hash>).
cell
Renders a single column’s cell for a worktree.
commit_cell
The commit cell: short hash + subject + relative time, or empty.
dirty_marker
The dirty marker for the Dirty column (spec §7).
path_cell
The path cell: relative to the repo root, or absolute if outside it.
pr_cell
The PR cell: #N (state), or empty when no PR is recorded.
status_marker
The status marker for the Status column (spec §7).