@dolthub/gitgraph-core
v1.6.4
Published
Core of gitgraph, a JavaScript library to draw pretty git graphs
Downloads
2
Readme
This is the fork of package of GitGraph.js.
This package makes changes to take commit info from DoltHub in order to render the commit graph.
Changes are:
- Reversed the commit list order in
packages/gitgraph-core/src/branches-order.ts
, so that the branches set are ordered by oldest to newest:
[...commits].reverse().forEach((commit, i) => {
this.branches.add(commit.branchToDisplay);
});
in
packages/gitgraph-core/src/branches-paths.ts
, change the branch path from a curved line to a straight line.in
packages/gitgraph-core/src/gitgraph.ts
, add all branch names of the current hash to the branches array.in
packages/gitgraph-core/src/template.ts
, changed the commit nodes spacing and branch label border style.in
packages/gitgraph-core/src/user-api/gitgraph-user-api.ts
, reversed thecommitOptionsList
so that it gets the right branch to show.