3 ms·
Note that this does not generate graphs from "linear history" -- the "linear history" means no merge commits / a single parent [0], and such graphs would be a s
by theamk 6y ago
Note that this does not generate graphs from "linear history" -- the "linear history" means no merge commits / a single parent [0], and such graphs would be a straight lines. I think the "linear" here refers to the non-nested JSON structure? The better project title would be:
"Generate a git graph structure from a flat list of git commits"
BTW, a more traditional approach to graph generation uses Graphviz graph language (sometimes called "dot file") to visualize commits. It does not look as neat though, but there are more tooling there [1] [2]
[0] https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/requiring-a-linear-commit-history https://docs.github.com/en/free-pro-team@latest/github/admin...
[1] https://github.com/rpmiskin/git-graphviz https://github.com/rpmiskin/git-graphviz
[2] https://return42.github.io/git2dot/slides/index.html#/3 https://return42.github.io/git2dot/slides/index.html#/3