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

Hide prefetch branches by default #11592

Open
drewnoakes opened this issue Feb 18, 2024 · 3 comments
Open

Hide prefetch branches by default #11592

drewnoakes opened this issue Feb 18, 2024 · 3 comments

Comments

@drewnoakes
Copy link
Member

Feature description

After enabling git maintenance in a repo, GE starts showing the prefetched branches in the UI. These aren't intended for user use, and GE should hide them by default to keep the revision grid uncluttered.

image

Environment

  • Git Extensions 4.2.1.17611
  • Build b0c0b28
  • Git 2.43.0.windows.1
  • Microsoft Windows NT 10.0.22631.0
  • .NET 6.0.27
  • DPI 144dpi (150% scaling)
  • Portable: False
  • Microsoft.WindowsDesktop.App Versions
    Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 7.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
@vbjay
Copy link
Contributor

vbjay commented Feb 18, 2024

refs/prefetch is the refspec to filter.

@drewnoakes
Copy link
Member Author

I could add that manually, but I think it'd make a sensible default.

We should also consider adding git maintenance support (created #11593 to track this).

@michkot
Copy link

michkot commented Apr 22, 2024

Just a note, the temporary workaround for seeing everything as usual except prefetch, assuming "show stashes" and "show git notes" are enabled, is to use following branch filter --exclude=refs/prefetch/* --all.

Disabling either stash or notes can be done by adding more excludes before the -all: --exclude=refs/notes/commits --exclude=refs/stash.

Note: the = notation is important, do not use the space-separated one, as that one will get intercepted and failed by GitExtension. You can play as you want, the trick can be learned by observing git command log (Tools menu) and reading the https://git-scm.com/docs/git-log docs.

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

No branches or pull requests

3 participants