33 lines
1.1 KiB
TeX
33 lines
1.1 KiB
TeX
\begin{frame}
|
|
\section{Introduction}
|
|
\frametitle{What you all do when working alone}
|
|
\begin{tikzpicture}[
|
|
commit/.style={circle, draw, fill=orange!80, minimum size=8mm, font=\footnotesize\bfseries},
|
|
branch/.style={rounded corners, fill=gray!20, draw=gray, font=\small\ttfamily, inner sep=4pt},
|
|
head/.style={rounded corners, fill=cyan!20, draw=cyan!60, font=\small\ttfamily, inner sep=4pt},
|
|
arrow/.style={-{Stealth[length=3mm]}, thick, gray},
|
|
node distance=1.8cm
|
|
]
|
|
% Commits
|
|
\node[commit] (c1) {C1};
|
|
\node[commit, right=of c1] (c2) {C2};
|
|
\node[commit, right=of c2] (c3) {C3};
|
|
\node[commit, right=of c3] (c4) {C4};
|
|
\node[commit, right=of c4] (c5) {C5};
|
|
|
|
% Arrows between commits
|
|
\draw[arrow] (c1) -- (c2);
|
|
\draw[arrow] (c2) -- (c3);
|
|
\draw[arrow] (c3) -- (c4);
|
|
\draw[arrow] (c4) -- (c5);
|
|
|
|
% Label master
|
|
\node[branch, above=0.6cm of c5] (master) {master};
|
|
\draw[-{Stealth}, thick] (master) -- (c5);
|
|
|
|
% Label HEAD
|
|
\node[head, above=0.4cm of master] (head) {HEAD};
|
|
\draw[-{Stealth}, thick] (head) -- (master);
|
|
\end{tikzpicture}
|
|
|
|
\end{frame} |