Closed jschneider closed 8 years ago
marked as duplicate ; will have to be covered by jgitver/jgitver#15
have a look at "branch_policy" branch, I started to introduce a branch policy mechanism that should cover most of your needs. I'll add IT tests & documentation. You can also refer to the corresponding unit tests in jgitver: this one especially.
We are using git-flow in some projects in our company.
In git-flow, when I finish a release, the release branch is merged into master and tagged on the master branch:
I would have expected that the new development version on the develop branch then would be 2.0.1-SNAPSHOT but it's still 0.0.0-develop-SNAPSHOT.
why did you not merge the tagged commit back into develop? That should solve your issue in this case.
As you can see, the tagged commit is not a parent of the current develop HEAD
@mawl I agree with @jschneider, in your case if you merge back your tagged commit, you should have what you expect.
But I agree that we should perhaps plan/describe new schemes/behavior in order to support different workflows than the default ones. Iin this area some help would be much appreciated in order to document the expected behaviors. The top would be some junit tests in a jgitver branch that could serve as documentation/discussion. Some draw.io graphs could do the trick also.
in order to fully support other workflows dedicated issues could be opened.
I am using GitFlow which is really, really great.
Development occurs in "develop". "master" always contains the latest, released version.
Example workflow can be seen in https://github.com/jschneider/jgitver-playing-ground
The version number calculation could be done like that: in "master":
in "develop":