Why do so many projects add "v" to git version tags?

Many projects (like Linux) add v to the tags of the git version, for example. v3.19 , which makes parsing these tags more stringent for no apparent reason. What is the meaning of this?

+8
git linux versioning
source share
1 answer

As mentioned in " Is there a standard naming convention for git tags? ":

The reason for the preceding "v" is historical. Older SCCS (cvs, rcs) could not distinguish tag identifier and version number.
Tag identifiers were limited so as not to start with a numeric value so that version numbers could be detected.

This agreement does not apply to the Semantic version in its version 2.0. This was in version 1.0:

When tagging releases in a version control system, the tag for the version MUST be " vX.YZ ", for example. " v3.1.0 ".

The fact that it is no longer applicable shows how optional the ā€œvā€ can be.

+8
source share

All Articles