Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.add("compact mode", () => (
{(gitgraph) => {
const master = gitgraph
.branch("master")
.commit()
.commit();
// Branch has more commits.
const develop = gitgraph.branch("develop").commit();
master.merge(develop);
// Branch & master have as much commits.
const feat1 = gitgraph.branch("feat1").commit();
master.commit();
);
};
return (
{(gitgraph) => {
gitgraph
.commit({ subject: "Initial commit" })
.commit({ subject: "Another commit" })
.commit({
subject: "Do something crazy",
renderTooltip,
});
gitgraph
.branch("dev")
.commit({
.add("import & compact mode", () => (
{(gitgraph) => {
gitgraph.import(deletedBranch);
}}
));