grawkit/tests/05-multi-branch.svg

121 lines
3.5 KiB
XML
Raw Permalink Normal View History

<!--
# Test creating and merging between multiple branches.
git commit -m "Commit on master"
git branch test-first
git branch test-second
git commit -m "Still on master"
git tag v.1.0.0
git checkout test-first
git commit
2016-12-31 18:19:50 +00:00
git branch test-third
git checkout test-second
git commit
git merge test-first
git tag v.2.0.0-rc1
git checkout master
git merge test-second
2016-12-31 18:19:50 +00:00
git checkout test-third
git commit
-->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -10 394 420">
<style type="text/css"><![CDATA[
.branch {
fill: none;
stroke-width: 10;
2016-12-31 18:19:50 +00:00
stroke-linecap: round;
}
.commit {
fill: #fff;
stroke-width: 5;
}
.label-tag {
fill: #333;
}
.label-rect {
stroke: none;
}
.label-text {
font-family: Inconsolata, Consolas, monospace;
2016-12-31 18:19:50 +00:00
font-size: 14px;
fill: #fff;
stroke: none;
}
.branch-master {stroke: #002b36; fill: #002b36}
.branch-test-first {stroke: #268bd2; fill: #268bd2}
.branch-test-second {stroke: #859900; fill: #859900}
2016-12-31 18:19:50 +00:00
.branch-test-third {stroke: #cb4b16; fill: #cb4b16}
]]></style>
<g class="merge">
2016-12-31 18:19:50 +00:00
<g class="branch-test-third">
<path class="branch" d="M50,150 C150,150 150,150 150,350" />
<path class="branch" d="M150,350 L150,400" />
2016-12-31 18:19:50 +00:00
</g>
<g class="branch-test-second">
<path class="branch" d="M0,50 C100,50 100,50 100,200" />
<path class="branch" d="M0,300 C100,300 100,300 100,250" />
</g>
<g class="branch-test-first">
<path class="branch" d="M0,50 C50,50 50,50 50,150" />
<path class="branch" d="M100,250 C50,250 50,250 50,150" />
</g>
<g class="branch-master">
<path class="branch" d="M0,0 C0,0 0,0 0,50" />
<path class="branch" d="M0,300 L0,400" />
2016-12-31 18:19:50 +00:00
</g>
</g>
<g class="branch-test-third">
<path class="branch" d="M150,350 L150,350" />
<circle class="commit" cx="150" cy="350" r="7.5" />
<g class="label-branch" transform="translate(200,350)">
<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-third</text>
</g>
</g>
<g class="branch-test-second">
<path class="branch" d="M100,200 L100,250" />
<circle class="commit" cx="100" cy="200" r="7.5" />
<circle class="commit" cx="100" cy="250" r="7.5" />
<g class="label-tag" transform="translate(200,250)">
<rect x="0" y="-14" width="87" height="24" rx="3" class="label-rect" />
<text x="5" y="2" textLength="77" class="label-text">v.2.0.0-rc1</text>
</g>
<g class="label-branch" transform="translate(297,250)">
<rect x="0" y="-14" width="87" height="24" rx="3" class="label-rect" />
<text x="5" y="2" textLength="77" class="label-text">test-second</text>
</g>
</g>
<g class="branch-test-first">
<path class="branch" d="M50,150 L50,150" />
<circle class="commit" cx="50" cy="150" r="7.5" />
<g class="label-branch" transform="translate(200,150)">
<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-first</text>
</g>
</g>
<g class="branch-master">
<path class="branch" d="M0,50 L0,300" />
<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="300" r="7.5" />
<g class="label-tag" transform="translate(200,100)">
<rect x="0" y="-14" width="59" height="24" rx="3" class="label-rect" />
<text x="5" y="2" textLength="49" class="label-text">v.1.0.0</text>
</g>
<g class="label-branch" transform="translate(200,300)">
<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>