nvie / git-toolbelt

A suite of useful Git commands that aid with scripting or every day command line usage
BSD 3-Clause "New" or "Revised" License
1.25k stars 111 forks source link

git-cleanup -s doesn't remove remote squashed branches #30

Open asagage opened 4 years ago

asagage commented 4 years ago

The squashed branches are only removed locally. The git-cleanup command is intended to work on both remote and local repositories, however the recently merged git-cleanup-squashed code was only removing local branches. It would be a great if the -s switch removed remote branches by default and honored the -l switch to ignore remotes if desired.

nvie commented 4 years ago

Would love that feature and consistency. If you would be able to make a PR for this, I’d be more than happy to merge that in.