git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git tag truncates tag list
@ 2021-01-05  3:39 stratus
  2021-01-05  5:45 ` Kevin Daudt
  2021-01-05  6:47 ` Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: stratus @ 2021-01-05  3:39 UTC (permalink / raw)
  To: git

Dear git,
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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git tag truncates tag list
  2021-01-05  3:39 git tag truncates tag list stratus
@ 2021-01-05  5:45 ` Kevin Daudt
  2021-01-05  6:47 ` Jeff King
  1 sibling, 0 replies; 4+ messages in thread
From: Kevin Daudt @ 2021-01-05  5:45 UTC (permalink / raw)
  To: stratus; +Cc: git

On Tue, Jan 05, 2021 at 04:39:20AM +0100, stratus@tuta.io wrote:
> Dear git,
> 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?
> 

That sounds like an issue with the pager. Does `git --no-pager tag` show
all tags?

What do the following things return:

  echo $LESS
  echo $GIT_PAGER
  git config core.pager
  git config pager.tag
  
Kind regards, Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git tag truncates tag list
  2021-01-05  3:39 git tag truncates tag list stratus
  2021-01-05  5:45 ` Kevin Daudt
@ 2021-01-05  6:47 ` Jeff King
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff King @ 2021-01-05  6:47 UTC (permalink / raw)
  To: stratus; +Cc: git

On Tue, Jan 05, 2021 at 04:39:20AM +0100, stratus@tuta.io wrote:

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git tag truncates tag list
@ 2021-01-05 17:12 stratus
  0 siblings, 0 replies; 4+ messages in thread
From: stratus @ 2021-01-05 17:12 UTC (permalink / raw)
  To: Git

Yes, sorry, they are there, it is only the sort order placing the newest ones further up in the list. Using page down to go down the long list of numerous screenfuls, the missing ones were not shown on the final screen so I didn't see them, and it ended at 5.9-rc8 instead of going to 5.10 and 5.11 as I had expected. I thought perhaps there was some limit on the number of tags shown, but couldn't find any reference to a limit searching online, and less itself can display long man pages without problem.

git --no-pager tag
shows the same thing
echo $LESS
echo $GIT_PAGER
git config core.pager
git config pager.tag

All return nothing.

echo $PAGER
less
Changing PAGER to more uses more for git tag instead, but gives the same result. So this was indeed using less as the pager.

Thank you for the helpful answers, I've only used git with smaller repos before and hadn't encountered that effect previously.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-05 17:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-05  3:39 git tag truncates tag list stratus
2021-01-05  5:45 ` Kevin Daudt
2021-01-05  6:47 ` Jeff King
  -- strict thread matches above, loose matches on Subject: below --
2021-01-05 17:12 stratus

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).