Is there a relatively simple way to produce the history graph of a git repository in LaTeX? I'm looking for something nicer-looking than the verbatim output of
git log --graph --oneline
gitgitdagsgraphs
Is there a relatively simple way to produce the history graph of a git repository in LaTeX? I'm looking for something nicer-looking than the verbatim output of
git log --graph --oneline
Best Answer
I have begun an attempt at an answer here. It would involve piping the output of
$ git log --graph --oneline
to a text file and having LaTeX parse that for information. We'd need to determine the nest level of the asterisk (branch level), which is what I'm not sure how to accomplish.Here is a MWE using a section of the tree from one of my projects:
Which produces the output:![example output](https://i.stack.imgur.com/19oUO.jpg)
This could be easily stylized in whatever way you wish. Of course the main issue is going to be finding a solution to parse the commit tree. Maybe
pgfplotstable
could be used?