Re: Git tag output order is incorrect (IMHO)
- From
Jeff King <peff@peff.net>
- Date
- Jul 20, 2013, 00:22 UTC
- Message-ID
- <20130720002241.GA22143@sigill.intra.peff.net>
- In-Reply-To
- <7vli52uym0.fsf@alter.siamese.dyndns.org>
On Fri, Jul 19, 2013 at 12:40:55PM -0700, Junio C Hamano wrote:
Show 12 quoted lines
> Andreas Schwab <schwab@linux-m68k.org> writes: > > > Rahul Bansal <rahul.bansal@rtcamp.com> writes: > > > >> 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