When a X branch PR is raised to Y branch, we see no changes when we create a pull request.
But the same when we compare the code on any IDE between X and Y using git we see changes and differences in the code.
What is the reason, have bit bucket made any recent changes for this to occur?
Hello @Shiva Kumar ,
and welcome to the Community!
Based on your description, I suspect it may be due to different ways of calculating the diff between Bitbucket Cloud and the IDE tool you're using . In git, you can use three-dot diff or two-dot diff to compare two branches (see Differences between double-dot and triple-dot in Git diff)
Bitbucket Pull requests compute the diff(topic diff) between the source branch HEAD and the common-ancestor (merge-base) . The merge-base is the point in history where the branches started to diverge. This is also known as three dot diff, with the equivalent command of executing that diff locally being :
git diff destination_branch...source_branch
In this case, could you please confirm if executing that same command locally and providing the same X and Y branches you used to create the pull request in the UI results in a different output?
Thank you, @Shiva Kumar !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.