Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.add("horizontal", () => (
{(gitgraph) => {
const master = gitgraph.branch("master").commit("Initial commit");
// Shouldn't render tags on horizontal mode
master.tag("v1.0");
const develop = gitgraph.branch("develop");
develop.commit("one");
master.commit("two");
develop.commit("three");
master.merge(develop);
master.commit();
}}
.add("horizontal (black arrow)", () => (
{(gitgraph) => {
const master = gitgraph.branch("master").commit("Initial commit");
const develop = gitgraph.branch("develop");
develop.commit("one");
master.commit("two");
develop.commit("three");
master.merge(develop);
master.commit();
}}
))
.add("horizontal reverse (black arrow)", () => (