git-trim icon indicating copy to clipboard operation
git-trim copied to clipboard

git-trim is too verbose about remote references

Open rtimush opened this issue 3 years ago • 2 comments

Check your version before submitting the bug

$ git trim --version
git-trim 0.4.2

Describe the bug

When you work in a repository with many other collaborators, the git-trim output looks like this:

Branches that will remain:
  local branches:
    foo # here are my branches I'm interested in
    bar
  remote references:
    origin/blabla1 # here is a huge list of remote branches from all collaborators
    origin/blabla2

The list of remote references is so long that the "local branches" part is actually not visible unless I scroll up. However, in this kind of repositories, I'm only interested in removing my own branches, and not in all remote ones.

To Reproduce

  1. Clone any repository with multiple branches
  2. git trim --delete merged-local,local

Expected behavior Remote references are not listed.

Actual behaviour Remote references are listed, although I explicitly specified that I have no intention to clean them up.

rtimush avatar May 31 '22 16:05 rtimush

I agree, it would be nice to have a config option to hide the remote references (or maybe only give the number of them?), and/or an option to limit the number of remote references shown?

bew avatar Nov 29 '23 10:11 bew