I have few tags with the following patterns in chronological order:
0.0.3.156-alpha+2
0.0.3.154
0.0.3.153
build-.139
build-.140
build-.142
build-0.0.1.28
build-0.0.1.29
I need to get the latest tag that match the pattern number.number.number.number hence 0.0.3.154
in this case.
The git command git descrive --match=<pattern>
will find the latest tag that matches that pattern. But since here is a glob (see here) and not a regex.
Could you show me the correct glob pattern to match the above?