Class GraphLayout
java.lang.Object
io.github.jbastgen.stemma.app.graph.GraphLayout
Assigns commits to lanes of the commit graph. Rows must be in display order (children before parents).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA commit and the commits it comes from.static final record -
Method Summary
Modifier and TypeMethodDescriptionstatic List<GraphLayout.Row> layout(List<GraphLayout.Node> nodes) Assigns every commit a lane.
-
Method Details
-
layout
Assigns every commit a lane. A lane is followed from a commit to its first parent; further parents of a merge get lanes of their own, which end where the branch ends. Commits are given newest first.
-