Skip to content

Use increment from merged branch in mainline mode #1716

@mchippingtonderrick-afl

Description

Creating a new issue as my original issue received no attention, and what I am asking has changed somewhat.

I am using an extremely simple mainline branching strategy, with a single master branch, and major, minor, and patch branches, with matching version increments.

I want any merge into the master branch to use the version number / version increment from the merged branch. However, when I merge with my current configuration, it uses the increment for the master branch.

Example trimmed history:

*   88b69a1  (master)  <- Want to calculate as 1.7.0
|\
| * b906ad1  (minor/example-2) <- Correctly calculates as 1.7.0
| * aaa9925
| * e0efa7d
|/
*   0ad16d9 <- Want to calculate as 1.6.2
|\
| * e9124c8  (patch/example-1) <- Correctly calculates as 1.6.2
|/
*   5a3e359 (tag: 1.6.1)

What do I need to do to achieve this behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions