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

前端之家收集整理的这篇文章主要介绍了linux – 为什么这么多项目在git版本标签前加上“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’的可选性.

原文链接:https://www.f2er.com/linux/394869.html

猜你在找的Linux相关文章