forked from MarkLodato/visual-git-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebase.tex
34 lines (30 loc) · 868 Bytes
/
rebase.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
34
\input{common.tex}
\begin{document}
\begin{tikzpicture}[main]
\boundingbox
\indexnode
\worknode
\commitTerminal cT at (-6,.75);
\commit a47c3 (A) -> cT;
\commit b325c (B) -> A;
\commit c10b9 (C) -> B;
\commit da985 (D) -> C;
\newcommit e57cf (E) -> D;
\newcommit f7e63 (F) -> E;
\commit 169a6 (1) -> A;
\commit 2c33a (2) -> 1;
\oldbranch topic -> 2;
\oldHEAD -> old topic;
\branch master -> D;
\branch topic -> F;
\HEAD -> topic;
\node [cmd,right] at (1, 3.75) {git rebase master};
\path [line]
(F) edge [bend left=20] (index)
(F) edge [bend left=30] (work)
(old HEAD label) edge [dashed, bend left=10] (HEAD label)
(1) edge [loosely dashed, bend right=35] (E)
(2) edge [loosely dashed, bend left=30] (F)
;
\end{tikzpicture}
\end{document}