Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Issue with pull requests

Shiva Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 19, 2024

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?

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2024

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events