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

Unclear that --delete remote:foo will only delete merged branches #203

Open
jyn514 opened this issue Feb 25, 2023 · 0 comments
Open

Unclear that --delete remote:foo will only delete merged branches #203

jyn514 opened this issue Feb 25, 2023 · 0 comments

Comments

@jyn514
Copy link

jyn514 commented Feb 25, 2023

git trim -h says the following about --delete:

  -d, --delete <DELETE>
          Comma separated values of `<delete range>[:<remote name>]`. Delete range is one of the `merged, merged-local, merged-remote, stray, diverged, local, remote`. `:<remote name>` is only necessary to a `<delete range>` when the range is applied to remote branches. You can use `*` as `<remote name>` to delete a range of branches from all remotes. [default : `merged:origin`] [config: trim.delete]

Having merged-remote separate from remote makes it seem like remote deletes all branches, which isn't what I want since that will also break all my open PRs. It turns out that merged does actually do what I want, and merged-remote does something I don't quite understand that seems related to local tracking branches. It would be nice to have more clear names for these options.

I see that https://github.com/foriequal0/git-trim/blob/master/docs/git-trim.man does actually document this, but unfortunately it didn't get installed with cargo install so I never saw it before opening this issue :/

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

1 participant