简体   繁体   English

实施新功能时如何从git-describe管理版本?

[英]How to manage version from git-describe when implementing a new feature?

I am working on this development: 我正在努力发展:

* a3bde21 (feature)
* bdf3b22
* 5a4d8e9 (master, tag: v0.1.0)
* 47312aa
* abd2111

So git describe will give me v0.1.0 . 所以git describe将给我v0.1.0 The problem is that I am implementing a feature which is not anymore the v0.1.0 . 问题是我实现的功能不再是v0.1.0 If I build my program and give the executable to someone, it will think it is the v0.1.0 , but it is not. 如果我构建程序并将可执行文件提供给某人,它将认为它是v0.1.0 ,但不是。

So I can follow to semver and add a build number: 所以,我可以按照semver并添加一个版本号:

0.1.0+a3bde21

But is it still seen as the version 0.1.0 . 但是它仍然被视为0.1.0版本。

How should I address this issue? 我应该如何解决这个问题?

You could take a look at GitVersion . 您可以看看GitVersion It is far more powerful and configurable than git describe . 它比git describe更强大和可配置。 It generates semver compliant version numbers. 它生成符合semver的版本号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM