grawkit/tests/03-branch.svg

77 lines
1.9 KiB
XML

<!--
# Test a scenario of adding commits to master, then
# branching off and adding a few commits to a different
# branch, then adding a final commit to master.
git commit -m "Commit on master"
git commit -m "More stuff"
git branch test-stuff
git checkout test-stuff
git commit -m 'Testing stuff'
git commit
git checkout master
git commit
-->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -10 190 320">
<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}
.branch-test-stuff {stroke: #268bd2; fill: #268bd2}
]]></style>
<g class="merge">
<g class="branch-test-stuff">
<path class="branch" d="M0,100 C50,100 50,100 50,150" />
<path class="branch" d="M50,200 L50,300" />
</g>
<g class="branch-master">
<path class="branch" d="M0,0 C0,0 0,0 0,50" />
<path class="branch" d="M0,250 L0,300" />
</g>
</g>
<g class="branch-test-stuff">
<path class="branch" d="M50,150 L50,200" />
<circle class="commit" cx="50" cy="150" r="7.5" />
<circle class="commit" cx="50" cy="200" r="7.5" />
<g class="label-branch" transform="translate(100,200)">
<rect x="0" y="-14" width="80" height="24" rx="3" class="label-rect" />
<text x="5" y="2" textLength="70" class="label-text">test-stuff</text>
</g>
</g>
<g class="branch-master">
<path class="branch" d="M0,50 L0,250" />
<circle class="commit" cx="0" cy="50" r="7.5" />
<circle class="commit" cx="0" cy="100" r="7.5" />
<circle class="commit" cx="0" cy="250" r="7.5" />
<g class="label-branch" transform="translate(100,250)">
<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>