Here is a list of tags I get when I do git describe --tags
:
v1.1.8
v1.1.9
v1.2.0
v1.2.0.1
v1.2.0.10
v1.2.0.11
v1.2.0.12
If I do
git describe --tags `git rev-list --tags --max-count=1`
I may get tag with either 3 digit or 4 digit. I only want to pick up the latest 4 digit tag. How can I always get the latest 4 digit git tag?
What I mean by the 4 digit tag is anything with vX.X.X.X