How to use the @gitgraph/react.Orientation.VerticalReverse function in @gitgraph/react

To help you get started, we’ve selected a few @gitgraph/react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nicoespeon / gitgraph.js / packages / stories / src / gitgraph-react / 2-orientations.stories.tsx View on Github external
.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)", () => (
github nicoespeon / gitgraph.js / packages / stories / src / gitgraph-react / 2-orientations.stories.tsx View on Github external
.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", () => (
github nicoespeon / gitgraph.js / packages / stories / src / gitgraph-react / 6-custom-renders.stories.tsx View on Github external
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) =&gt; {
          gitgraph
            .commit({ subject: "Initial commit" })
            .commit({ subject: "Another commit" })
            .commit({
              subject: "Do something crazy",
              renderMessage,
            });

          gitgraph
            .branch("dev")
            .commit({
              subject: "Oh my god",