fabjan / calver

BSD Zero Clause License
0 stars 0 forks source link

make prerelease smarter(?) #5

Open fabjan opened 3 months ago

fabjan commented 3 months ago

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?

fabjan commented 3 months ago

Maybe this is just trying too hard to be cute. The date parts will not make sense if the prerelease is worked on on some other day.