SZEDER Gábor <szeder@xxxxxxxxxx> 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 ;-)