Commit Graph

5 Commits

Author SHA1 Message Date
Xi Ruoyao
54ee51d41d
git-version: fix trunk branch detection 2021-05-02 16:22:08 +08:00
Xi Ruoyao
6ca780c12d git-version: simplify the versioning scheme
Now the version for trunk head is simply rx.y-z.  x.y is the last
release, and z is the number of commits after x.y.

For other commits, the version is rx.y-z-g{sha}.  An abbreviated sha
hash is added to distinguish commits with same x, y, and z on different
branches.

If there are uncommited changes, a "+" is appended to the version,
indicating the version is "unclean".

To make it works correctly, a tag "rx.y" have to be created on the last
commit on trunk of x.y release.
2021-05-01 21:00:30 +08:00
Bruce Dubbs
8186f16b0f Quiet git status check. Make sed more readable. 2021-04-06 17:28:27 -05:00
Xi Ruoyao
6b505dabb8
remove leading zero for day 2021-04-07 01:13:48 +08:00
Xi Ruoyao
5948380997
automatically generate version info from git HEAD 2021-04-07 01:01:01 +08:00