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

Re: git tag truncates tag list

From
Jeff King <peff@peff.net>
Date
Jan 5, 2021, 06:47 UTC
Message-ID
<X/QLds2oVvOAF1nb@coredump.intra.peff.net>
In-Reply-To
<MQFZ9EW--3-2@tuta.io>
On Tue, Jan 05, 2021 at 04:39:20AM +0100, stratus@tuta.io wrote:
Show 12 quoted lines
> git tag misses out some tags from this repo here, there seem to be too many to show:
> 
> https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
> 
> It cuts the list short, losing either the latest ones with simply 
> git tag
>  or the earliest using either 
> git tag  --sort=-creatordate
>   or 
> git tag --sort=-taggerdate
> 
>  Is there some config option somewhere to show the full list?

I see 680 tags with all of those commands, which matches the number of tags reported by:

  git ls-remote --tags --refs \
    https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux

Perhaps a silly question, but which tags do you think are missing? Are you confused that 5.10 and 5.11 do not show up at the end? If so, it's because they sort byte-wise between 5.1 and 5.2. So they're there, just not at the end, with "git tag". When sorting by creatordate or taggerdate, they appear at the beginning (because you chose a descending sort).

-Peff
Previous: Kevin Daudt
Message 3 of 3 in “git tag truncates tag list”
  1. stratus@tuta.ioJan 5, 2021
  2. Kevin DaudtJan 5, 2021
  3. Jeff KingJan 5, 2021

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.