Skip to content

Respect GitLab squash settings without squashing ucascade cascade merges#47

Open
4shurik wants to merge 1 commit intounblu:mainfrom
4shurik:feature-HLD-7835
Open

Respect GitLab squash settings without squashing ucascade cascade merges#47
4shurik wants to merge 1 commit intounblu:mainfrom
4shurik:feature-HLD-7835

Conversation

@4shurik
Copy link
Copy Markdown

@4shurik 4shurik commented Apr 9, 2026

When the GitLab project setting Squash commits when merging is set to Encourage, user merge requests into release branches should still be squashed.

However, ucascade cascade merges between release branches and into master should remain regular merge commits. If cascade merges are squashed, the same changes can appear twice in the git graph through unrelated histories: once as a squash commit on the target branch and later again through the original merge
commit propagated by subsequent release merges.

This change makes squash behavior configurable so cascade merges can preserve graph continuity while regular user merge requests can still follow the project squash policy.

@4shurik 4shurik marked this pull request as ready for review April 10, 2026 14:17
@gysel gysel requested review from fbpe and jmini April 11, 2026 19:31
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

Successfully merging this pull request may close these issues.

1 participant