vscode-gitlens
vscode-gitlens copied to clipboard
Remove Local Branches Tracking Pruned Remote Branches
In issue #556 it was suggested to add a feature that allows users to interactively delete local branches that are tracking pruned or would-be-pruned remote branches. This would help clean up the local repo in a branch-heavy workflow
@eamodio out of curiosity, where can I see the features added to the vscode api? You mentioned in #556 something about "multi-select support that is coming soon". I have been referencing this page for my api needs, but I cannot find where they announce the new features they add
@zaboyle The best way (though not 100%) is to read the monthly release notes: e.g. https://code.visualstudio.com/updates/v1_37#_extension-authoring. Most API additions/changes are mentioned there.
As for the multi-select support, that should be coming in the August update -- https://github.com/microsoft/vscode/issues/76941
For my workflow, I'd find an interactive delete option to be a pain to have to interactively go through things. All local branches should be created to be tracked, meaning if there's any branches that don't have an equiv branch in remotes, then they should be pruned, no exceptions. That makes it easy to just have a right click option on 'Branches' to 'Prune untracked branches'.
As well, to help the user visually see what isn't tracked I think there should be an option to set a colour on the untracked branches. Then a user can easily see that a branch isn't tracked and only interact with that branch (like set it to tracked, or delete it manually if they don't want to use the prune option).