I am using GitVersion with Mainline mode. With default settings, it increases patch number with every commit in master. Is there a way to increase patch number on every push rather than on every commit?
If I push 3 commits together, patch gets increased by 3. In this case I would get version jump from 2.0.4 to 2.0.7 on VSTS build.
GitVersion.yml
mode: Mainline
Note: I have got only one branch, which is 'master' and I will be keep pushing my changes to master directly. I am not looking to use any branching strategy yet.
The short answer is no - sorry :(
However, if you did decide to simply use two branches, you could simulate this by using Git's "Squash and Merge" strategy to achieve it. Basically, all of your commits would become a single commit on the main branch (master) after merging.
Feels simple enough to warrant it as a suggestion :)