versioncmp: factor out helper for suffix matching
authorSZEDER Gábor <szeder.dev@gmail.com>
Thu, 8 Dec 2016 14:48:11 +0000 (15:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Jan 2017 20:25:12 +0000 (12:25 -0800)
commitb17846432da4f8530c7349561eac4a16f95bbd5b
tree953ebbe6a12d3f5e3e29efc2c6e3b1b8f7274afa
parent51acfa9db588ddd8c3aff2acbc1a85ae7ac239f6
versioncmp: factor out helper for suffix matching

As the number of identical steps to be done for both tagnames grows,
extract them into a helper function, with the additional benefit that
the conditionals near the end of swap_prereleases() will use more
meaningful variable names.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
versioncmp.c