aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
488 stars 180 forks source link

Allow merge --squash on releases #329

Open heinrichWeichert opened 2 years ago

heinrichWeichert commented 2 years ago

It would be nice to allow merge --squash on releases, too. Sometimes, feature branches contain more than one commit, and I don't want to have such a big commit history on my main branch. (I know, I could squash develop beforehand, but nevertheless, this would be nice for the differing commits between release/main).

aleksandr-m commented 2 years ago

Squashing commits in the release branch?

heinrichWeichert commented 2 years ago

For example in Bitbucket, there is the option to squash on merge, squashing all commits and not creating a merge commit. I think it would be useful to first squash all commits on the release branch and then merge.