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

tags sorted by their depth, *committerdate, and taggerdate

From
clime <clime7@gmail.com>
Date
May 6, 2020, 18:16 UTC
Message-ID
<CAGqZTUujRh-f-83A8NYokbxLGZ-bnvGrtguzJsMdg9EX04NsGg@mail.gmail.com>
Hello,
I have some very specific requirements to get annotated tags sorted in
a certain way. I would like them to be sorted:
- primarily by their depth (i.e. how far they are from current HEAD
and if they are not reachable then they should not be displayed).
- secondarily by committerdate of the commit they are associated with
- ternarily by taggerdate

Is something like that possible? Is something like that possible even with git 1.7.1?

If this isn't possible, I am thinking I could write some simple utility in C to do it but can I rely on certain binary format of commit and tag objects? Has the format changed at some point since git 1.7.1? Is there a git library I could use for it? Or is the format documented somewhere?

Thank you very much and sorry for so many questions clime

Next: Jeff King
Message 1 of 4 in “tags sorted by their depth, *committerdate, and taggerdate”
  1. climeMay 6, 2020
  2. Jeff KingMay 7, 2020
  3. climeMay 7, 2020
  4. brian m. carlsonMay 7, 2020

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.