Community
Participate
Working Groups
Using Gitflow feature branches in combination with Gerrit reviews can be tricky, and requires some manual work. A common workflow is to "merge --squash" onto develop, as soon as a feature is finished and ready for review. The user then has to edit the commit message, and afterwards push to Gerrit. Finally, the feature branch should to be deleted. Given that a repository is configured for Gerrit and for Gitflow, all of the above could be handled by a Gerrit-specific FeatureFinishOperation. Since this is non-standard Gitflow behavior, probably the user should be asked at first invocation, if that is what he wants.
Another issue is the publishing of feature branches. Using the EGit Gerrit integration, the remote origin refspec is configured for Gerrit, which means every commit in the feature branch will trigger a review, when published. The Gitflow integration could let the user choose which remote to use, or even create a new one, with a refspec that does not trigger reviews.