]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5512-ls-remote.sh
ls-remote: create '--sort' option
authorHarald Nordgren <haraldnordgren@gmail.com>
Mon, 9 Apr 2018 01:42:26 +0000 (03:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Apr 2018 01:51:56 +0000 (10:51 +0900)
commit1fb20dfd8ed70b4459312918a71444bc79ea6f0b
treec399068dfd3c507325958eca44bf5e61d0f47808
parent427cbc9dbfeb7c96bb1d5d9ace722353e2a5438e
ls-remote: create '--sort' option

Create a '--sort' option for ls-remote, based on the one from
for-each-ref. This e.g. allows ref names to be sorted by version
semantics, so that v1.2 is sorted before v1.10.

Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-ls-remote.txt
builtin/ls-remote.c
t/t5512-ls-remote.sh