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

git-trim is too verbose about remote references #192

Open
rtimush opened this issue May 31, 2022 · 2 comments
Open

git-trim is too verbose about remote references #192

rtimush opened this issue May 31, 2022 · 2 comments

Comments

@rtimush
Copy link

rtimush commented May 31, 2022

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
Copy link

bew commented Nov 29, 2023

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
Copy link

dsully commented Sep 21, 2024

Add my +1 here as well.

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

No branches or pull requests

3 participants