Re: [PATCH 5/5] versioncmp: cope with common leading parts in versionsort.prereleaseSuffix
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 5, 2016, 22:15 UTC
- Message-ID
- <xmqqwphmmoi6.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20161005232609.Horde.VetzEIKHDJUdcaOod9sHxuK@webmail.informatik.kit.edu>
SZEDER Gábor <szeder@ira.uka.de> writes:
> Gut feeling tells me that I should take this as a subtle > encouragement to look into adding 'versionsort.postreleasesuffix', > shouldn't I ;)
It is more like "this made me realize that these are merely 'suffix' after the real release name, no pre- or post- about them", also known as "I think PREreleasesuffix was a mistake and we weren't thinking clearly enough when we added it."
To me, this looks like a list of possible suffixes that can include an empty suffix to denote "the real thing", e.g.
versionsort.suffix = "-alpha" "-beta" "" "-gamma" "-delta"
and that position in the list determines the order of things inside the same family of versions that share the same "non-suffix" part.