forked from MarkLodato/visual-git-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff.tex
More file actions
21 lines (19 loc) · 621 Bytes
/
Copy pathdiff.tex
File metadata and controls
21 lines (19 loc) · 621 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\input{common.tex}
\begin{document}
\begin{tikzpicture}[main]
\boundingbox
\normalcommits
\indexnode[0,-1.5]
\worknode[0,-3.5]
\branch main -> E;
\branch stable -> A;
\HEAD -> main;
\path [line, bend right=20]
(index) edge node[cmd, auto=left] {git diff} (work)
(E) edge[bend left=20] node[cmd] {git diff --cached} (index)
(E) edge[bend left=30, auto=left] node[cmd] {git diff HEAD} (work)
(A) edge node[cmd] {git diff stable} (work)
(B) edge[bend left=25,auto=left] node[cmd] {git diff b325c da985} (D)
;
\end{tikzpicture}
\end{document}