Deep Dive on Stacked PRs

Faster Code Reviews, Faster Code Shipping with Stacked PRs - Greg Foster

Topic 6 of 12

Published Sep 1, 2025 · Clip 26:59–34:08 (7:08)

Greg explains stacking in depth: creating PR-B on top of PR-A so each small change builds on the last, enabling parallel review, test, and merge flows (e.g., server functions, endpoint, and client changes for one feature). Vanilla Git makes stacking painful—updating a down-stack PR causes rebase hell—which is why tooling like Graphite or Facebook's internal systems automates restacking. He reflects that the branch became the reviewed/tested atomic unit, so stacks-of-branches, not commits, are the needed data structure.