Creating a merge request from a partially merged (squashed) branch shows a common ancestor diff instead of a HEAD diff
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
It is a known issue that GitLab shows a common ancestor diff in the MR preview.
However, when an MR has already been created, the diff should show only the relevant changes. This is not the case when the branch has only partially been merged:
- Create a diverged branch from the main
- Merge (squash!) only some changes from the branch by editing some commits
- Create a new MR from the branch to the main and observe the same common ancestor diff in the MR's preview and in the MR's body when it's created.
Related:
Edited by 🤖 GitLab Bot 🤖