加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 为什么这么多项目在git版本标签前加上“v”?

发布时间:2020-12-14 02:18:28 所属栏目:Linux 来源:网络整理
导读:许多项目(例如 Linux)都在v之前加上他们的git版本标签,例如: v3.19这使得解析这些标签变得更加困难,没有明显的原因.这样做有什么意义? 解决方法 如“ Is there a standard naming convention for git tags?”中所述: The reason for the preceding ‘v’
许多项目(例如 Linux)都在v之前加上他们的git版本标签,例如: v3.19这使得解析这些标签变得更加困难,没有明显的原因.这样做有什么意义?

解决方法

如“ Is there a standard naming convention for git tags?”中所述:

The reason for the preceding ‘v’ is historical.
Older SCCS (cvs,rcs) could not distinguish between a tag identifier and a revision number.
Tag identifiers were restricted to not begin with a numeric value so that revision numbers could be detected.

在其2.0版本中,Semantic Versionning没有强制执行该惯例.它在1.0版本中:

When tagging releases in a version control system,the tag for a version MUST be “vX.Y.Z” e.g. “v3.1.0“.

它不再被强制执行的事实显示了’v’的可选性.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读