-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommit-2.tex
33 lines (29 loc) · 872 Bytes
/
commit-2.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\documentclass[preview]{standalone}
\usepackage{gitdags}
\tikzgraphsset{%
nudge/.style={/tikz/shift={#1}},
nudge down/.style={nudge=(270:#1)},
nudge down/.default=1
}
%\usepackage{fontspec}
%\setmainfont[ExternalLocation=/Users/othree/tmp-projects/git-graph/]{"EVA-Matisse_Standard.ttf"}
\begin{document}
\centering
\begin{tikzpicture}
% Commit DAG
\gitDAG[grow right sep = 2em]{
0 -- 1 -- 2 -- 3 -- 4 -- {[nudge down] {A}}
};
\gitbranch
{master} % node name and text
{above=of 4} % node placement
{4} % target
\gitbranch
{for-fast-forward} % node name and text
{below=of A} % node placement
{A} % target
\gitHEAD
{below=of for-fast-forward} % node placement
{for-fast-forward}
\end{tikzpicture}
\end{document}