GitVersion
GitVersion copied to clipboard
[Feature] Include a value for an int version useful for Android ApplicationVersion
Feature request to include some value that only increases so that it can be used as an int.
Context
Some systems, like Google Play Store for Android apps, have something called ApplicationVersion
which is an integer that should only increase.
Using GitVersion is great for SemVer, for example, but it doesn't seem to have anything that outputs a straightforward integer version that could only increase.
Using a trick like concatenating major, minor and patch version would be undesirable as 0.0.123 would be concatenated to 123 but it would be smaller than 0.1.0 which would be concatenated to 10
Possible Implementation
Include a total git commit or similar
git rev-list --count --all
Sure, we could expose something like that as a variable. Pull requests are welcome!
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.