Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git branch DSL #154

Open
phodal opened this issue Mar 12, 2020 · 0 comments
Open

Git branch DSL #154

phodal opened this issue Mar 12, 2020 · 0 comments

Comments

@phodal
Copy link
Owner

phodal commented Mar 12, 2020

https://github.com/nicoespeon/gitgraph.js/blob/18f6488d12532cd26ed6a4e9ee1da2488c099be0/packages/gitgraph-core/README.md

        // Simulate git commands with Gitgraph API.
        const master = gitgraph.branch("master");
        master.commit("Initial commit");

        const develop = gitgraph.branch("develop");
        develop.commit("Add TypeScript");

        const aFeature = gitgraph.branch("a-feature");
        aFeature
          .commit("Make it work")
          .commit("Make it right")
          .commit("Make it fast");

        develop.merge(aFeature);
        develop.commit("Prepare v1");

        master.merge(develop).tag("v1.0.0");
      }}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant