formations/figures/apps/git_trees.tex

52 lines
1.9 KiB
TeX
Raw Permalink Normal View History

2015-07-15 20:52:22 +02:00
\definecolor{stashcolor}{RGB}{248,249,156}
\definecolor{wdcolor}{RGB}{21,222,103}
\definecolor{indexcolor}{RGB}{19,206,204}
\definecolor{headcolor}{RGB}{29,162,232}
\definecolor{remote1color}{RGB}{222,208,212}
\definecolor{remote2color}{RGB}{217,151,175}
\definecolor{remote3color}{RGB}{220,98,143}
\definecolor{remote4color}{RGB}{229,20,96}
\begin{tikzpicture}[y=1pt, x=1pt, yscale=-0.500000, xscale=1.000000, inner sep=0pt, outer sep=0pt]
\path<5->[color=black,draw=black,fill=stashcolor,line join=round,line cap=round,miter
limit=4.00,line width=1.440pt,rounded corners=0.2000cm]
(65,0) node[below=3pt] {Stash}
-- ++(25,0)
-- ++(0,75)
-- ++(-50,0)
-- ++(0,-75)
--cycle;
\path<2->[color=black,draw=black,fill=wdcolor,line join=round,line cap=round,miter
limit=4.00,line width=1.440pt,rounded corners=0.2000cm]
(125,0) node[below=3pt] {WD}
-- ++(25,0)
-- ++(0,75)
-- ++(-50,0)
-- ++(0,-75)
--cycle;
\path<3->[color=black,draw=black,fill=indexcolor,line join=round,line cap=round,miter
limit=4.00,line width=1.440pt,rounded corners=0.2000cm]
(185,0) node[below=3pt] {Index}
-- ++(25,0)
-- ++(0,75)
-- ++(-50,0)
-- ++(0,-75)
--cycle;
\path<4->[color=black,draw=black,fill=headcolor,line join=round,line cap=round,miter
limit=4.00,line width=1.440pt,rounded corners=0.2000cm]
(245,0) node[below=3pt] {HEAD}
-- ++(25,0)
-- ++(0,75)
-- ++(-50,0)
-- ++(0,-75)
--cycle;
\path<6>
(325,50) node[anchor=base,fill=remote1color,shape=rectangle,draw,minimum width=50pt,minimum height=20pt,rounded corners=0.2cm] {}
++(-5,-10) node[anchor=base,fill=remote2color,shape=rectangle,draw,minimum width=50pt,minimum height=20pt,rounded corners=0.2cm] {}
++(-5,-10) node[anchor=base,fill=remote3color,shape=rectangle,draw,minimum width=50pt,minimum height=20pt,rounded corners=0.2cm] {}
++(-5,-10) node[anchor=base,fill=remote4color,shape=rectangle,draw,minimum width=50pt,minimum height=20pt,rounded corners=0.2cm] {Remote};
\end{tikzpicture}