Skip to main content

Module git_graph

Module git_graph 

Source
Expand description

Pretty commit graph layout (VS Code / lazygit style).

Builds colored lanes from git log parent topology so the TUI can draw / / merge connectors instead of raw git log --graph ASCII.

Structs§

GraphRow
One rendered commit row in the graph.

Enums§

GraphGlyph
One cell in the graph column strip.

Constants§

LANE_COLORS
Palette size for lane colors (UI maps id → RGB).

Functions§

build_graph
High-level: parse + layout from raw git log pretty output.
detail_line
Build a short detail string for the selection popup / detail line.
lane_rgb
Map lane color id → (r,g,b) — VS Code–ish branch colors.