Yes, it is. Think of Git Compare as a merge request. If you want to merge the changes in feature branch A to the main branch, the valid input order is as follows:
- Source: A
- Target: main
In this scenario, Git shows the changes as expected. But when you try the input as follows:
- Source: main
- Target: A
Git shows that there is nothing to compare because Git Compare checks the head of the main branch and shows it is behind the target branch.
If you find yourself in this situation, you can always swap the inputs around or force the contents of one branch to another, as described in Git in 30 Seconds.