]> git.leopard-lacewing.eu Git - tex_tools.git/commitdiff
minor fixes
authorPeter Schaefer <schaeferpm@gmail.com>
Sun, 17 Feb 2019 15:15:06 +0000 (16:15 +0100)
committerPeter Schaefer <schaeferpm@gmail.com>
Sun, 17 Feb 2019 15:15:06 +0000 (16:15 +0100)
generic/git2.tex
gitLog2tikz.py
text-output.pdf
text-output.tex

index 26fe976db96e67b3927a2549a13756d1e6644ded..ab5bc03a6ab524a70d114f6b97a62265a364ce55 100644 (file)
@@ -1,22 +1,15 @@
 \begin{tabular}{!{\color{lightgray}\vline}c!{\color{lightgray}\vline}c!{\color{lightgray}\vline}c!{\color{lightgray}\vline}}
 \arrayrulecolor{lightgray}\hline
 Date & Changes & Author\\
-17 Feb 2019&started table output&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
 \arrayrulecolor{lightgray}\hline
-17 Feb 2019&-o functioniert (traumhaft)&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
+17 Feb 2019&[doc] new generic directory&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
 \arrayrulecolor{lightgray}\hline
-17 Feb 2019&-o functioniert (traumhaft)&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
-17 Feb 2019&branches get loaded correctly&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
+17 Feb 2019&started table output&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
 \arrayrulecolor{lightgray}\hline
-17 Feb 2019&! fix for messages&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
+17 Feb 2019&-o functioniert (traumhaft)&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
 \arrayrulecolor{lightgray}\hline
 17 Feb 2019&fixed some issues&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
 \arrayrulecolor{lightgray}\hline
-3 Jan 2019&Merge branch 'develop' into feature/python2&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
-3 Jan 2019&[py] better color function&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
 3 Jan 2019&[doc] lsting Hooks&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
 \arrayrulecolor{lightgray}\hline
 3 Jan 2019&[doc] Hook2 test&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
@@ -28,28 +21,10 @@ Date & Changes & Author\\
 3 Jan 2019&[doc] Features/Bugs
 [py] reversed changed&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
 \arrayrulecolor{lightgray}\hline
-3 Jan 2019&[py] 2new git order&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
-3 Jan 2019&[py] new git order&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
 3 Jan 2019&[doc] neuer Branch&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
 \arrayrulecolor{lightgray}\hline
-3 Jan 2019&[doc] hooktest 2&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
-3 Jan 2019&[doc] hook test&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
 2 Jan 2019&[doc] neues Hooks&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
 \arrayrulecolor{lightgray}\hline
-2 Jan 2019&[doc] test&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
-2 Jan 2019&[py] fixed order&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
-2 Jan 2019&[py] fixed automatic colors&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
-2 Jan 2019&[py] minor fix&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
-2 Jan 2019&[py]minor bugfix&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
-\arrayrulecolor{lightgray}\hline
 2 Jan 2019&[py] Export copy finished&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
 \arrayrulecolor{lightgray}\hline
 2 Jan 2019&[doc] kleine änderrung&\href{mailto:schaeferpm@gmail.com}{Peter Schaefer}\\
index fcdef7c73f599b5beb0d4b52e771a66b6a12854e..cee16e24945a50992262598fa656c0ea02e54f15 100644 (file)
@@ -80,7 +80,7 @@ class Repo:
 
     def add_commitlog(self,log):
         for line in log.split("\n"):
-            if not line == "":
+            if not line == "" and line.strip() != "...":
 
                 node_pos = -1
                 message_pos = -1
@@ -110,7 +110,8 @@ class Repo:
     def resolve_parents(self):
         for commit in self._commits.values():
             for key_p in commit._parents.keys():
-                commit.update_parent(self._commits[key_p])
+                if key_p in self._commits:
+                    commit.update_parent(self._commits[key_p])
 
     def add_branchlog(self,log):
         #read all branches
@@ -130,6 +131,7 @@ class Repo:
         out("\\begin{tabular}{!{\\color{lightgray}\\vline}c!{\\color{lightgray}\\vline}c!{\\color{lightgray}\\vline}c!{\\color{lightgray}\\vline}}")
         out("\\arrayrulecolor{lightgray}\\hline")
         out("Date & Changes & Author\\\\")
+        out("\\arrayrulecolor{lightgray}\\hline")
         for commit in self._commits.values():
             commit.export_commit2table()
             out("\\arrayrulecolor{lightgray}\\hline")
@@ -264,14 +266,14 @@ r =  Repo()
 
 # extract Commits
 if options.path:
-    cmd = "git log --graph --parents -- " + options.path
+    cmd = "--graph --parents -- " + options.path
 else:
-    cmd = "git log --graph --parents --branches"
+    cmd = "--graph --parents --branches"
 
 if options.log_opts:
-    cmd = cmd + ' ' + options.log_opts
+    cmd = options.log_opts + ' ' + cmd
 
-r.add_commitlog(check_output(cmd, shell=True, encoding='utf-8'))
+r.add_commitlog(check_output('git log ' + cmd, shell=True, encoding='utf-8'))
 
 # extract Branches
 cmd = "git branch -va" # | cut -b 3-"
index 699f8b63524ae4bcfeeb712aa0c58fcd6eefbd6b..f939bdb16e11ca1e8b73492cf8f27d59d8bde26f 100644 (file)
Binary files a/text-output.pdf and b/text-output.pdf differ
index 47a272fa77475b14061a3688deae481b723066a0..27f81739b01176a62e6e2585dea8eec97ec9b185 100644 (file)
@@ -38,6 +38,7 @@
        \begin{itemize}
                \item Sonderzeichen (deutsch) : gelöst mit -o output
                \item Branches verdeckt
+               \item follow for multiple path (unlinked git history)
        \end{itemize}
 
        \section{python-latex}