From: Junio C Hamano Date: Mon, 02 Apr 2018 18:32:56 GMT Subject: Re: [PATCH] ls-remote: create option to sort by versions Message-ID: In-Reply-To: <87605aw1ue.fsf@evledraar.gmail.com> Ævar Arnfjörð Bjarmason writes: > This is a sensible thing to want, but why not follow the UI we have for > this with git-tag? I.e. --sort= & -i (or --ignore-case)? Of course > ls-remote doesn't just show tags, so maybe we'd want --tag-sort= > and --ignore-tag-case or something, but the rest should be equivalent, > no? Yeah, and if we can reuse more of ref-filter.c machinery (which was factored out of for-each-ref and tag you suggested borrows from), that would be even better. In the context of ls-remote, however, we cannot inspect the object (we typically do not have them yet), so it may not be practical, but I agree with your suggestion---we should match the behaviour at the UI level at least when we can.