This is necessary in order use this tool with multiple actively developed major versions, which is one of the primary advantages of using semver in the first place.
Say I have a v1 branch with latest tag v1.1.0 and a v2 branch with latest tag v2.0.1. If I make a minor change to the v1 branch to create the tag v1.2.0, even if the v2.0.1 tag was created more recently than v1.1.0. This is accomplished by only considering ancestors of HEAD when searching for the latest tag.
This is necessary in order use this tool with multiple actively developed major versions, which is one of the primary advantages of using semver in the first place.
Say I have a
v1
branch with latest tagv1.1.0
and av2
branch with latest tagv2.0.1
. If I make a minor change to thev1
branch to create the tagv1.2.0
, even if thev2.0.1
tag was created more recently thanv1.1.0
. This is accomplished by only considering ancestors ofHEAD
when searching for the latest tag.Cheers, Oliver