Commit d7b41115 authored by Lukas Nagel's avatar Lukas Nagel
Browse files

add graphic for example2

parent 5a1d1925
\documentclass{standalone}
\input{theme}
\input{versiongraph}
\begin{document}
\begin{tikzpicture}[versionsgraph]
\commit{\rootcommit}{lightblue}{};
\commit[right=of \rootcommit]{\pepcommit}{lightblue}{\rootcommit};
\branch{master}{\pepcommit}
\branch[right=of master]{performance}{\pepcommit}
\message{\rootcommit}{initial}
\message{\pepcommit}{pep8}
\HEAD{performance}
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\input{theme}
\input{versiongraph}
\begin{document}
\begin{tikzpicture}[versionsgraph]
\commit{\rootcommit}{lightblue}{};
\commit[right=of \rootcommit]{\pepcommit}{lightblue}{\rootcommit};
\commit[right=of \pepcommit]{\sortcommit}{lightred}{\pepcommit};
\branch{master}{\pepcommit}
\branch{performance}{\sortcommit}
\message{\rootcommit}{initial}
\message{\pepcommit}{pep8}
\message{\sortcommit}{presort}
\HEAD{performance}
\end{tikzpicture}
\end{document}
......@@ -287,12 +287,16 @@
Der Algorithmus ist extrem langsam,\\
Alice probiert ihn durch Vorsortieren zu beschleunigen
\begin{commandline}
\cmd{git checkout -b} \str{performance} & \\
\cmd{vim} algo.py & \\
\cmd{git add} algo.py & \\
\cmd{git commit -m} \str{presort input} & \\
\visible<1->{\cmd{git checkout -b} \str{performance}} & \\
\visible<1->{\cmd{vim} algo.py} & \\
\visible<1->{\cmd{git add} algo.py} & \\
\visible<2->{\cmd{git commit -m} \str{presort input}} & \\
\end{commandline}
\center{} {\huge \alert{Grafik: Angepasster Versionsgraph}}
\center
\begin{figure}
\only<1>{\includegraphics{../grafiken/ex2-graph-precommit}}
\only<2>{\includegraphics{../grafiken/ex2-graph}}
\end{figure}
\end{Beispiel}
\end{frame}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment