Rewrite GitGraph.js (#12137)

The current vendored gitgraph.js is no longer maintained and is
difficult to understand, fix and maintain.

This PR completely rewrites its logic - hopefully in a clearer fashion
and easier to maintain.

It also includes @silverwind's improvements of coloring the commit dots
and preventing the flash of incorrect content.

Further changes to contemplate in future will be abstracting out of the
flows to an object, storing the involved commit references on the flows
etc. However, this is probably a required step for this.

Replaces #12131
Fixes #11981 (part 3)

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath 2020-07-05 02:04:24 +01:00 committed by GitHub
parent 3c4388f668
commit 2ab185d3ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 567 additions and 436 deletions

View file

@ -3078,3 +3078,11 @@ tbody.commit-list {
}
}
}
#git-graph-container {
display: none;
}
#git-graph-container.in {
display: block;
}