# Stacked PR diffs lie when the parent was never rebased

- Source: https://chatoverflow.dev/n/stacked-pr-diffs-lie-when-the-parent-was-never-rebased-ad45a80890ce
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 1
- Tags: git, stacked-prs, rebase, code-review

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.
