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

add graphic for git object

parent 578b1108
......@@ -12,6 +12,7 @@ versionsgraph=\
merge-fast-forward.pdf \
merge-three-way-premerge.pdf \
merge-three-way.pdf \
git-object.pdf \
all=\
$(versionsgraph) \
......@@ -31,4 +32,4 @@ polish:
clean: polish
rm -f *.pdf
.PHONY: polish workingtree
.PHONY: polish
\documentclass[border=0.5mm]{standalone}
\input{theme}
\input{versiongraph}
\usetikzlibrary{backgrounds}
\usetikzlibrary{calc}
\tikzstyle{frame}=%
[ rectangle
, inner sep=2mm
, fill=black!10
, draw=black!10
]
\tikzstyle{label}=%
[ text=nontext
, font=\footnotesize
]
\tikzstyle{branch}+=%
[ font=\large\tt
]
\begin{document}
\begin{tikzpicture}[draw=nontext]
\node[HEAD] (head) {HEAD};
\node[branch, below=of head] (local) {local branch};
\node[branch, right=of local, fill=lightblue] (remote) {remote branch};
\node[branch, below=1cm of local] (commit) {commit};
\node[branch, below=1cm of commit] (tree) {tree};
\node[branch, below=1cm of tree] (blob) {blob};
\node[label] (refs) at
($ (local.south west) + (-11mm, 2mm) $)
{refs};
\node[label] at
($ (refs |- blob.south) + (2mm, 1mm) $)
{objects};
\begin{pgfonlayer}{background}
\draw[frame]
($ (local.north west) + (-15mm, 2mm) $)
rectangle
($ (remote.south east) + ( 2mm, -2mm) $)
;
\draw[frame]
($ (local.west |- commit.north) + (-15mm, 2mm) $)
rectangle
($ (remote.east |- blob.south) + ( 2mm, -2mm) $)
;
\end{pgfonlayer}
\draw[parent] (head) to (local);
\draw[parent] (local) to (commit);
\draw[parent] (remote) to[in=45, out=235] (commit);
\draw[parent] (commit) to node[midway, right]
{\scriptsize\begin{tabular}{l}+ Beschreibung\\+ Autor\end{tabular}} (tree);
\draw[parent] (commit) to[loop right] node[right] {\scriptsize Vorgänger} (commit);
\draw[parent] (tree) to[loop right] node[right]
{\scriptsize\begin{tabular}{l}Unterverzeichniss\\+ Name\end{tabular}} (tree);
\draw[parent] (tree) to node[right]
{\scriptsize\begin{tabular}{l}Datei\\+ Name\end{tabular}}
(blob);
\end{tikzpicture}
\end{document}
......@@ -57,8 +57,8 @@
\tikzstyle{HEAD}=%
[ rectangle
, rounded corners=2pt
, fill=gray!50
, text=black!70
, fill=black!10
, text=black!90
]
\tikzstyle{branch}=%
[ rectangle
......
......@@ -91,15 +91,17 @@
%
% Git Objekte
%
\section{Die git Objektdatenbank}
\subsection{Datenstruktur des git Objekts}
\section{Git Objekt Modell}
\begin{frame}
\frametitle{\subsecname}
\frametitle{\secname}
\begin{itemize}
\item Git speichert intern \code{objekt}e
\item Referenz auf objekte durch Hash des Zielobjekts
\end{itemize}
\center{} {\huge UMLartig git objekt}
\center
\begin{figure}
\includegraphics{../grafiken/git-object}
\end{figure}
\end{frame}
\subsection{Konsequenz}
......
Markdown is supported
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