grawkit/tests/02-master.svg

51 lines
1.1 KiB
XML

<!--
# Test a simple scenario of adding a few commits to `master`.
git commit -m "Adding a new commit"
git commit
-->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -10 112 170">
<style type="text/css"><![CDATA[
.branch {
fill: none;
stroke-width: 10;
stroke-linecap: round;
}
.commit {
fill: #fff;
stroke-width: 5;
}
.label-tag {
fill: #333;
}
.label-rect {
stroke: none;
}
.label-text {
font-family: Inconsolata, Consolas, monospace;
font-size: 14px;
fill: #fff;
stroke: none;
}
.branch-master {stroke: #002b36; fill: #002b36}
]]></style>
<g class="merge">
<g class="branch-master">
<path class="branch" d="M0,0 C0,0 0,0 0,50" />
<path class="branch" d="M0,100 L0,150" />
</g>
</g>
<g class="branch-master">
<path class="branch" d="M0,50 L0,100" />
<circle class="commit" cx="0" cy="50" r="7.5" />
<circle class="commit" cx="0" cy="100" r="7.5" />
<g class="label-branch" transform="translate(50,100)">
<rect x="0" y="-14" width="52" height="24" rx="3" class="label-rect" />
<text x="5" y="2" textLength="42" class="label-text">master</text>
</g>
</g>
</svg>