I have a repository in github, which main branch is named master
and the following situation:
- A contribution of code in a PR (let's name PR-A) from branch
feature/pr-a
tomaster
. - A contribution of code in a PR (let's name PR-B) from branch
feature/pr-b
tomaster
.
Both PRs are independent so they could in theory to include incompatible changes that would cause a git conflict in some files.
Is there any simple or scripted way (*) of checking the potential conflict between both PRs/branches once merged in master? I mean, a way of answering the following questions:
- If I merge first PR-A to
master
, would I get a conflict when I try to merge PR-B tomaster
. Which files? - If I merge first PR-B to
master
, would I get a conflict when I try to merge PR-A tomaster
. Which files?
Thanks in advance!
(*) Of course, I can always get this information doing the actual merge in my local copy and check, but I wonder if there is any other mechanism that doesn't need to do the actual merges.