summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-02-27 12:56:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-02-27 22:04:05 (GMT)
commit9ef176b55c373ba087b2d84e77b5713578891927 (patch)
treea722c05ca54a4573a91076d04a4d47a60680bfd5 /Makefile
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff)
downloadgit-9ef176b55c373ba087b2d84e77b5713578891927.zip
git-9ef176b55c373ba087b2d84e77b5713578891927.tar.gz
git-9ef176b55c373ba087b2d84e77b5713578891927.tar.bz2
tag: support --sort=<spec>
--sort=version:refname (or --sort=v:refname for short) sorts tags as if they are versions. --sort=-refname reverses the order (with or without ":version"). versioncmp() is copied from string/strverscmp.c in glibc commit ee9247c38a8def24a59eb5cfb7196a98bef8cfdc, reformatted to Git coding style. The implementation is under LGPL-2.1 and according to [1] I can relicense it to GPLv2. [1] http://www.gnu.org/licenses/gpl-faq.html#AllCompatibility Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dddaf4f..16b00a5 100644
--- a/Makefile
+++ b/Makefile
@@ -884,6 +884,7 @@ LIB_OBJS += userdiff.o
LIB_OBJS += utf8.o
LIB_OBJS += varint.o
LIB_OBJS += version.o
+LIB_OBJS += versioncmp.o
LIB_OBJS += walker.o
LIB_OBJS += wildmatch.o
LIB_OBJS += wrapper.o