@dolthub/gitgraph-core
TypeScript icon, indicating that this package has built-in type declarations

1.6.4 • Public • Published

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:

  1. 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);
});
  1. in packages/gitgraph-core/src/branches-paths.ts, change the branch path from a curved line to a straight line.

  2. in packages/gitgraph-core/src/gitgraph.ts, add all branch names of the current hash to the branches array.

  3. in packages/gitgraph-core/src/template.ts, changed the commit nodes spacing and branch label border style.

  4. in packages/gitgraph-core/src/user-api/gitgraph-user-api.ts, reversed the commitOptionsList so that it gets the right branch to show.

Readme

Keywords

Package Sidebar

Install

npm i @dolthub/gitgraph-core

Weekly Downloads

0

Version

1.6.4

License

MIT

Unpacked Size

440 kB

Total Files

107

Last publish

Collaborators

  • liuliu_dev
  • tbantle22