Skip to content

Commit 77f286a

Browse files
authored
Merge pull request #483 from Ruth-ikegah/Ruth-ikegah/issue#430
Update about-pull-requests.md
2 parents 453adc7 + 8b5c0e5 commit 77f286a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/github/collaborating-with-issues-and-pull-requests/about-pull-requests.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ When you create a pull request, you can choose to create a pull request that is
5353

5454
{% data reusables.pull_requests.mark-ready-review %} You can convert a pull request to a draft at any time. For more information, see "[Changing the stage of a pull request](/articles/changing-the-stage-of-a-pull-request)."
5555

56+
### Differences between commits on compare and pull request pages
57+
58+
The compare and pull request pages use different methods to calculate the diff for changed files:
59+
60+
- Compare pages show the diff between the tip of the head ref and the current common ancestor (that is, the merge base) of the head and base ref.
61+
- Pull request pages show the diff between the tip of the head ref and the common ancestor of the head and base ref at the time when the pull request was created. Consequently, the merge base used for the comparison might be different.
62+
5663
### Further reading
5764

5865
- "[Pull request](/articles/github-glossary/#pull-request)" in the {% data variables.product.prodname_dotcom %} glossary

0 commit comments

Comments
 (0)