git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C HamanoNext: Antoine Pelisse
Message 9 of 16 in “Git tag output order is incorrect (IMHO)”
  1. Rahul BansalJul 18, 2013
  2. Duy NguyenJul 18, 2013
  3. Duy NguyenJul 18, 2013
  4. Rahul BansalJul 18, 2013
  5. Rahul BansalJul 18, 2013
  6. Duy NguyenJul 18, 2013
  7. Andreas SchwabJul 18, 2013
  8. Junio C HamanoJul 19, 2013
  9. Jeff KingJul 20, 2013
  10. Antoine PelisseAug 20, 2013
  11. Jeff KingSep 8, 2013
  12. Jeff KingOct 16, 2013
  13. Antoine PelisseOct 16, 2013
  14. Felipe ContrerasSep 8, 2013
  15. Phil HordSep 11, 2013
  16. Junio C HamanoSep 11, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.