Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.add("vertical reverse (commit after merge)", () => (
{(gitgraph) => {
const master = gitgraph.branch("master").commit();
const dev = gitgraph.branch("dev").commit();
master.commit();
master.merge(dev);
dev.commit();
}}
))
.add("horizontal reverse (commit after merge)", () => (
.add("vertical reverse", () => (
{(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);
}}
))
.add("horizontal", () => (
get it, I'm gonna shoot you in the head then and there. Then I'm
gonna shoot that bitch in the kneecaps, find out where my goddamn
money is. She gonna tell me too. Hey, look at me when I'm talking
to you, motherfucker. You listen: we go in there, and that nigga
Winston or anybody else is in there, you the first motherfucker to
get shot. You understand?
<p></p>
);
};
return (
{(gitgraph) => {
gitgraph
.commit({ subject: "Initial commit" })
.commit({ subject: "Another commit" })
.commit({
subject: "Do something crazy",
renderMessage,
});
gitgraph
.branch("dev")
.commit({
subject: "Oh my god",