Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Exclude refs/prefetch/ from refs view #1359

Open
CervEdin opened this issue Jan 2, 2025 · 2 comments
Open

[Request] Exclude refs/prefetch/ from refs view #1359

CervEdin opened this issue Jan 2, 2025 · 2 comments

Comments

@CervEdin
Copy link

CervEdin commented Jan 2, 2025

Using git maintenance start, Git starting prefetching remote refs. However, these are unfortunately treated as local branches in the refs view, and end up cluttering the view a lot.

Ideally, I don't want them shown in the refs view at all. I personally don't see the need for them there. AFAIK, their sole purpose is basically to fetch refs remote refs w.o. being subject to garbage collection.

Another possibility is having them show up akin to remote branches, if excluding them is not deemed a good idea.

NB: They don't appear when using tig refs --branches, --remotes or --tags.

While I'm here, is there a way to toggle branches, tags or remotes in the view?

@koutcher
Copy link
Collaborator

The order has already been changed in 80ad85c and they now appear at the end. While changing the order I prepared some code to show references other than branches, remotes and tags only when invoked with tig refs --all, I'll see if I can deliver it. Toggling the filter is not currently possible due to the way it was implemented.

@CervEdin
Copy link
Author

That's nice. I assume the order refers to when default sorted?
It would be nice to be able to have some control in which refs are shown in the refs view, doesn't have to be something toggled.
Similar to how you can use reference-format = hide:remote or perhaps filtering using refspec or something.
For example, I can imagine it being useful to be able to exclude some remotes, and not just refs/prefetch/* but for example also refs/remote/other/*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants