Subject: Re: [PATCH 5/5] versioncmp: cope with common leading parts in versionsort.prereleaseSuffix

From: Junio C Hamano <[email-masked]>
Date: Wed, 05 Oct 2016 10:01:48 -0700

SZEDER Gábor <[email-masked]> writes:

> And a final sidenote: sorting based on the longest matching suffix
> also allows us to (ab)use version sort with prerelease suffixes to
> sort postrelease tags as we please, too:
>
>   $ ~/src/git/git -c versionsort.prereleasesuffix=-alpha \
>                   -c versionsort.prereleasesuffix=-beta \
>                   -c versionsort.prereleasesuffix= \
>                   -c versionsort.prereleasesuffix=-gamma \
>                   -c versionsort.prereleasesuffix=-delta \
>                   tag -l --sort=version:refname 'v3.0*'
>   v3.0-alpha1
>   v3.0-beta1
>   v3.0
>   v3.0-gamma1
>   v3.0-delta1

Assuming that gamma and delta are meant to indicate "these are
post-release updates", I think a mechanism that can yield the above
result is fantastic ;-)