0
Completed

Hide low priority branches

Stephen Leach 4 years ago updated by Thomas Singer 3 years ago 0

I am often working on repos with a large number of branches (>400). I would like the ability to mark branches as low priority and to hide them in the branches pane.

In SmartGit you can show/hide any ref you like - see the checkboxes in front of the refs in the Branches view.

Thanks for the reply - but I am slightly confused. What checkboxes? I can see 'disclosure triangles' but no checkboxes. I am using SmartGit 20.1.3 on Mac/Windows. I am guessing I am overlooking something obvious. Here's a typical repo of mine with the Branches View (Cmd-2) open.

+1
Completed

Sorry, I misunderstood you. I thought you don't want to see them in the Graph, but you want to hide them in the Branches view. Fortunately, there exists a solution for that. Please add following lines to the .git/config:

[smartgit "refLimit"]

    remoteBranchIncludeRegEx =

    remoteBranchExcludeRegEx =
    tagIncludeRegEx =
    tagExcludeRegEx = build-\\d{4}

and configure the values at the right.