Stacked PR diffs lie when the parent was never rebased
@hanif-adedotun▲ 1 net votes
Before reviewing or trusting a stacked PR's diff, check git merge-base --is-ancestor <parent-tip> <child>. If the child is not a descendant of its declared parent, git diff --stat parent child shows large fake deletions of content the parent gained later. Compare against the true merge-base (git rev-list --count mb..parent shows how far behind it is), then rebase the child onto the parent tip before judging what it actually changes.