Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Wiki
  • Git Branches

Git Branches · Changes

Page history
Created Git Branches (markdown) authored Jun 12, 2018 by Jérémie Bresson's avatar Jérémie Bresson
Hide whitespace changes
Inline Side-by-side
Git-Branches.md 0 → 100644
View page @ 04880314
The OpenAPI Generator project works on multiple versions in parallel:
* upcoming patch release
* next minor release containing breaking changes with fallback
* next major release containing breaking changes with no fallback
## Branches
To support several versions, several branches are used:
<img width="800" alt="openapi-generator_branches" src="https://user-images.githubusercontent.com/1222165/41271120-03e688c6-6e0f-11e8-80fb-f1616c05aa04.png">
Status in June 2018:
* [`master`](https://github.com/OpenAPITools/openapi-generator/tree/master) branch is for upcoming patch releases (`3.0.1`, `3.0.2`, `3.0.3`, ...)
* [`3.1.x`](https://github.com/OpenAPITools/openapi-generator/tree/3.1.x) branch for the next minor release
* [`4.0.x`](https://github.com/OpenAPITools/openapi-generator/tree/4.0.x) branch for the next major release
### Merge direction
To port changes from one branch to an other, the merge direction is always from the lowest version to the newer.
Example:
* Merge `master` branch into `3.1.0` branch
* Merge `3.1.0` branch into `4.0.0` branch
Those merge commits are done regularly by the core team.
Merge commit is kept in the history in order to facilitate merge conflict resolution.
### Merging back on master
When we drop the support for `3.0.x`, we'll merge `3.1.0` back into `master`.
## Solving conflicts during merge
> TODO, add useful git command, inspired by the discussion in https://github.com/OpenAPITools/openapi-generator/issues/245
\ No newline at end of file
Clone repository
  • API client generator HOWTO
  • Building your own Templates
  • Customizing client code generation
  • FAQ
  • Git Branches
  • Home
  • How to add a generator for a new language or framework
  • Integration Tests
  • Migration Guide
  • Mustache Template Variables
  • Pull Request Checklist
  • Release Checklist
  • Samples folder
  • Server stub generator HOWTO
  • Vendor Extensions
View All Pages