The --prerelease option does not have a way to know what the "correct" base version is, it will assume 0 for the patch number.
If we let calver fetch branches and look at other git logs we can provide it with a target branch which it can assume will be the base of the next release, and calculate from there.
Not sure how to make this play nice with --stdin but that was also kind of mostly added for testing.
Is there some other nice way we can provide it with a base version for the prerelease?
The
--prerelease
option does not have a way to know what the "correct" base version is, it will assume0
for the patch number.If we let
calver
fetch branches and look at other git logs we can provide it with a target branch which it can assume will be the base of the next release, and calculate from there.Not sure how to make this play nice with
--stdin
but that was also kind of mostly added for testing.Is there some other nice way we can provide it with a base version for the prerelease?