From: Karthik Nayak Date: Thu, 10 Sep 2015 15:48:25 +0000 (+0530) Subject: ref-filter: add support to sort by version X-Git-Tag: v2.7.0-rc0~137^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/90c004085cfe65e1b290e5b5fc05817ec2c596a6?hp=90c004085cfe65e1b290e5b5fc05817ec2c596a6 ref-filter: add support to sort by version Add support to sort by version using the "v:refname" and "version:refname" option. This is achieved by using the 'versioncmp()' function as the comparing function for qsort. This option is included to support sorting by versions in `git tag -l` which will eventually be ported to use ref-filter APIs. Add documentation and tests for the same. Mentored-by: Christian Couder Mentored-by: Matthieu Moy Signed-off-by: Karthik Nayak Signed-off-by: Junio C Hamano ---