'Show diff in branches between files, not commits

Let's say I have 2 branches - A and B.

B is ahead a few commits and behind a few commits.

I want to merge B into A (let's say no conflicts).

I open a PR: Merge B into A.

It shows, for example, 3 files that are Diff.

Now, lets say I edited and pushed manually to brach A changes to 2 out of the 3 files to be the exactly same as branch B. I expect when I open the same PR again to show me there is only 1 file that has diff, but no, since github looks diffs in commits, it shows me there are still 3 files that are "changed".

Any external tool to show diff between files? not commits?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source