Re: Git tag output order is incorrect (IMHO)
From: Jeff King <hidden>
Date: 2016-06-15 22:58:13
On Fri, Jul 19, 2013 at 12:40:55PM -0700, Junio C Hamano wrote:
Andreas Schwab [off-list ref] writes:quoted
Rahul Bansal [off-list ref] writes:quoted
IMHO "git tag" is expected to show tag-list ordered by versions.A git tag can be anything, not related to versions at all.Correct. But that does not prevent somebody to add "git tag --sort=X" option to the command, just like "git for-each-ref" has "--sort=X" option.
A while ago I started on (but did not get very far on) unifying the ref selection code for for-each-ref, tag, and branch. It would be nice if they all supported the same set of --contains/--points-at/--merged/--sort, etc. I do plan to finish it eventually, but if anyone else feels like picking it up, I'd be glad to review patches and/or share my work-in-progress as a starting point. -Peff