<aside> 🗣
git graph generation is surprisingly unsimple…
</aside>
https://github.com/mhutchie/vscode-git-graph/blob/develop/web/graph.ts#L337

sequenceDiagram
autonumber
participant Load
participant A as window
Load ->> A : load event
create participant B as GitGraphView
A ->> B : new GitGraphView()
create participant C as Graph
B ->> C : new Graph()
B ->> B : loadCommits()
B ->> C : loadCommits()
loop vertex available
C ->> C : determinePath()
end
B ->> C : render()
GitGraphView classGraph usageGraph classVertex: bidirectional graph
vscode.getState()commits are the only thing we’re interested in → stored as a reverse order (i.e. latest commits first