foriequal0 / git-trim

Automatically trims your branches whose tracking remote refs are merged or stray
MIT License
489 stars 14 forks source link

git-trim is too verbose about remote references #192

Open rtimush opened 2 years ago

rtimush commented 2 years ago

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.

bew commented 12 months ago

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?

dsully commented 2 months ago

Add my +1 here as well.