This repository was archived by the owner on Aug 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
FAQ
Olivier Spinelli edited this page Oct 17, 2018
·
15 revisions
Why does CSemVer define ZeroBased
for CI-Builds and SimpleGitVersion uses ZeroTimed
term?
Good catch! The ZeroBased simply specifies that the 0.0.0 version must be used (with the prerelease --ci.XXX.CIBuildName) but does not state what the XXX is. For its semantic version, SimpleGitVersion uses the commit's time down to the hundredth of a second:
0.0.0--ci.2015-03-14T19-06-24-42.develop
To support the short form, things get a little bit more complicated because of the 20 characters limit. SimpleGitVersion uses the number of seconds between the commit's time and the 1st of january 2015, and this number of seconds is expressed in base 36 padded on 7 chars: 1000 years fit into 7 chars.
We also use --
trick.
0.0.0--00yI6aT-develop
The code is here.