altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.66k stars 87 forks source link

Git `prefetch/remotes` should always be ignored (`git maintenance start`) #138

Closed TheLostLambda closed 2 months ago

TheLostLambda commented 2 months ago

Hello again!

Just a small one this time! I learned about git maintenance recently, and enabled it on my repo using git maintenance start (https://git-scm.com/docs/git-maintenance), but now I'm seeing all of the (supposed to be invisible) prefetch/remotes/.... These are intentionally ignored by commands like git log, and I reckon the same should probably be true for gitu!

Screenshot from 2024-04-17 15-14-42

altsem commented 2 months ago

/HEAD is already filtered here: https://github.com/altsem/gitu/blob/master/src/items.rs#L172-L174

Perhaps these are visible on the "show_refs" screen as well? (Y)

TheLostLambda commented 2 months ago

Hi @altsem !

Interestingly, it actually doesn't show up there! (Which I believe is the correct / intended behavior)!

I'll do a quick poke around to make sure it's not hiding elsewhere, then I'll submit a PR!