From: Peter Schaefer Date: Wed, 2 Jan 2019 22:19:47 +0000 (+0100) Subject: [py] minor fix X-Git-Tag: v1.0~8 X-Git-Url: https://git.leopard-lacewing.eu/?a=commitdiff_plain;h=8a5d5311fb3e76b379941409bafaf8db840ed7df;p=tex_tools.git [py] minor fix --- diff --git a/git-log-to-tikz.py b/git-log-to-tikz.py index d3735c5..426c0a5 100755 --- a/git-log-to-tikz.py +++ b/git-log-to-tikz.py @@ -37,7 +37,8 @@ class Commit: self._message_pos = pos pos = pos + 1 - self._message = self._message.replace("!","") + if self._hash: + self._message = self._message.replace("!","") def update_parent (self, child): self._parents[child._hash] = child diff --git a/git1.tex b/git1.tex index 6cced47..05533e8 100644 --- a/git1.tex +++ b/git1.tex @@ -2,26 +2,36 @@ \tikzstyle{commit}=[draw,circle,fill=white,inner sep=0pt,minimum size=5pt] \tikzstyle{every path}=[draw] \tikzstyle{branch}=[draw,rectangle,rounded corners=3,fill=white,inner sep=2pt,minimum size=5pt] -\node[commit, blue, fill=blue] (da268ea) at (0.0,0) {}; +\node[commit, blue, fill=blue] (69be133) at (0.5,0) {}; +\node[right,xshift=10] (label_69be133) at (69be133.east) {\verb!69be133: [py]minor bugfix!}; +\node[commit, blue, fill=blue] (7ac7de4) at (0.0,-0.5) {}; +\node[right,xshift=10] (label_7ac7de4) at (7ac7de4.east) {\verb!7ac7de4: Merge branch 'master' into feature/python!}; +\node[commit, blue, fill=blue] (da268ea) at (0.0,-1.0) {}; \node[right,xshift=10] (label_da268ea) at (da268ea.east) {\verb!da268ea: [py] Export copy finished!}; -\node[commit, blue, fill=blue] (3dbbd41) at (0.0,-0.5) {}; +\node[commit, blue, fill=blue] (3dbbd41) at (0.0,-1.5) {}; \node[right,xshift=10] (label_3dbbd41) at (3dbbd41.east) {\verb!3dbbd41: [py] commit & branch läuft!}; -\node[commit, blue, fill=blue] (afd6f5a) at (0.0,-1.0) {}; +\node[commit, blue, fill=blue] (afd6f5a) at (0.0,-2.0) {}; \node[right,xshift=10] (label_afd6f5a) at (afd6f5a.east) {\verb!afd6f5a: [py] Commit funktioniert!}; -\node[commit, blue, fill=blue] (9ebee64) at (0.0,-1.5) {}; +\node[commit, blue, fill=blue] (9ebee64) at (0.0,-2.5) {}; \node[right,xshift=10] (label_9ebee64) at (9ebee64.east) {\verb!9ebee64: [py] init & git shell!}; -\node[commit, blue, fill=blue] (d78896f) at (0.0,-2.0) {}; +\node[commit, blue, fill=blue] (d78896f) at (0.0,-3.0) {}; \node[right,xshift=10] (label_d78896f) at (d78896f.east) {\verb!d78896f: [doc] kleine änderrung!}; -\node[commit, blue, fill=blue] (a6f6d74) at (0.0,-2.5) {}; +\node[commit, blue, fill=blue] (a6f6d74) at (0.0,-3.5) {}; \node[right,xshift=10] (label_a6f6d74) at (a6f6d74.east) {\verb!a6f6d74: Grober Latex Test!}; -\node[commit, blue, fill=blue] (e5c3cd5) at (0.0,-3.0) {}; +\node[commit, blue, fill=blue] (e5c3cd5) at (0.0,-4.0) {}; \node[right,xshift=10] (label_e5c3cd5) at (e5c3cd5.east) {\verb!e5c3cd5: added Ruby Skript!}; +\node[commit, blue, fill=blue] (1af283b) at (0.0,-4.5) {}; +\node[right,xshift=10] (label_1af283b) at (1af283b.east) {\verb!1af283b: [py] some comments!}; +\path[blue] (69be133) to[out=90,in=-90] (7ac7de4); +\path[blue] (da268ea) to[out=90,in=-90] (69be133); +\path[blue] (da268ea) to[out=90,in=-90] (1af283b); \path[blue] (3dbbd41) to[out=90,in=-90] (da268ea); \path[blue] (afd6f5a) to[out=90,in=-90] (3dbbd41); \path[blue] (9ebee64) to[out=90,in=-90] (afd6f5a); \path[blue] (d78896f) to[out=90,in=-90] (e5c3cd5); \path[blue] (a6f6d74) to[out=90,in=-90] (d78896f); \path[blue] (e5c3cd5) to[out=90,in=-90] (9ebee64); -\node[branch,right,xshift=10] (feature/python) at (label_da268ea.east) {\lstinline{feature/python}}; -\node[branch,right,xshift=10] (master) at (label_da268ea.east) {\lstinline{master}}; +\path[blue] (1af283b) to[out=90,in=-90] (7ac7de4); +\node[branch,right,xshift=10] (feature/python) at (label_7ac7de4.east) {\lstinline{feature/python}}; +\node[branch,right,xshift=10] (master) at (label_69be133.east) {\lstinline{master}}; \end{tikzpicture} diff --git a/text-output.pdf b/text-output.pdf index 58280c8..6c09098 100644 Binary files a/text-output.pdf and b/text-output.pdf differ