Add `delete-squashed-branches` command by allejo · Pull Request #924 · tj/git-extras

Deletes branches that have been "squashed-merged" into a specified branch

```bash
$ git delete-squashed-branches main

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also update the doc

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this sound to you? 6867c79

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also need to update the output of git delete-squashed-branches main?
Would be better if we use $ (branch) git ... to indicate the branch change.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! Is this a new convention or are there other commands that do this too?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. But I think this way will be more clear.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this sound to you?

```bash
$ (feature-branch) git delete-squashed-branches main
Deleted branch dependabot/bundler/kramdown-2.3.1 (was 1d3fb00).
Deleted branch dependabot/bundler/rexml-3.2.5 (was a7e4052).
$ (main) git ...
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alrighty! Amended to my last commit