22 lines
955 B
Typst
22 lines
955 B
Typst
#import "@preview/fletcher:0.5.8" as fletcher: diagram, node, edge
|
|
#import fletcher.shapes: house, chevron, pill
|
|
#import "../definicije.typ": file-object, tree-object, git-object, commit-object
|
|
|
|
#diagram(node-stroke: 0.5pt,
|
|
{
|
|
node((-1, 0), [`e23d19`], shape: pill, name: <commit1>)
|
|
node((0, 0), [`3943eb`], shape: pill, name: <commit2>)
|
|
node((1, 0), [`98ff21`], shape: pill, name: <commit3>)
|
|
node((2, 0), [`4e96a1`], shape: pill, name: <commit4>, stroke: (dash: "dotted"))
|
|
node((1, -1), [main], shape: chevron, name: <main>)
|
|
node((1, 1), [HEAD], shape: chevron, name: <head>)
|
|
node((2, 1), [index], shape: rect, name: <index>, stroke: (dash: "dotted"))
|
|
|
|
edge(<commit2>, <commit1>, "->")
|
|
edge(<commit3>, <commit2>, "->")
|
|
edge(<commit4>, <commit3>, "->", stroke: (dash: "dotted"))
|
|
edge(<index>, <commit4>, "->", stroke: (dash: "dotted"))
|
|
edge(<head>, <commit3>, "->")
|
|
edge(<main>, <commit3>, "->")
|
|
}
|
|
)
|