gitvergit 的版本字符串管理
git 的一个简单的版本字符串管理。简单、轻量级、基于标签的版本字符串管理,使用 Python 编写。
增强了 git describe
输出并生成如下格式的版本字符串
v<MAJ>.<MIN>.<PATCH>-[<NEXT>|<SNAPSHOT>]-[<COMMIT_COUNT>]/<HASH>
The -SNAPSHOT
suffix is used when the NEXT version string numbers are known, to denote a snapshot of that future version.
The -NEXT
suffix is used when no NEXT version string numbers have been defined and gitver needs to describe a future version.
Note that suffixes such as -NEXT
and -SNAPSHOT
are customizable.
示例输出:
Latest tag: v0.4.9 NEXT defined as: 0.4.10 Current build ID: a3a73a5861e5721055f3a12545201e265ba0c097 Current version: v0.4.10-SNAPSHOT-2/a3a73a5
评论