为什么这么多项目在 git 版本标签前加上 "v"?
Why do so many projects prepend "v" to the git version tags?
很多项目(例如 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' 可以是多么可选。
很多项目(例如 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' 可以是多么可选。