When creating a pull request into a feature branch that was rebased from master, Bitbucket is showing incorrect diffs. The diff appears to be comparing against master instead of the target feature branch, despite the PR being created against the feature branch.
Steps to Reproduce:
Expected Behavior:
Actual Behavior:
Additional Context:
Hi Nate and welcome to the community!
A git diff command can be run:
For example,
git diff feature..some-branch
Note that there two dots between the branch names. This type of diff takes into account changes in both branches.
For example,
git diff feature...some-branch
Note that there are three dots between the branch names. This type of diff shows changes only in some-branch, starting at a common ancestor of feature and some-branch. Changes in the destination branch (feature in this case) are not taken into account.
PRs in Bitbucket Cloud use a three dot diff. Do you see the same diff that you see in Bitbucket if you run the following command locally, in a clone of the repo?
git diff feature...some-branch
where feature replace with the destination branch of the PR, and some-branch replace with the source branch of the PR.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.