Re:Trunk Based Development
by reywilliams on Saturday February 21, 2026 @04:52AM
(#47099153)
GitHub[1] is working through this now, hopefully it leads to more adoption.
[1]: https://x.com/jaredpalmer/status/2019817235163074881?s=20
Re:Trunk Based Development
by swiftcoder on Saturday February 21, 2026 @05:06AM
(#47099251)
Damn! Can't wait
I think Gerrit has something like stacked PRs - and incidentally it's used for Chromium and was created for running its own public open source projects by Google. It's also used by the Qt project, which is where I sometimes use it.
Gerrit looks ugly and is not very easy to use at first, but at least it's not slow like GitLab and GitHub.
What's the benefit of stacked PRs?
Re:Trunk Based Development
by swiftcoder on Saturday February 21, 2026 @05:31AM
(#47099404)
It's basically automatic rebasing of a set of PRs built on top of each other. Makes it easy to split large changes into manageable pieces that are asymmetrical for your colleagues to review individually, and makes it easy to maintain feature branches long enough to get the feature working end-to-end
The tooling gap exists partly because git's data model has no native concept of "this branch's upstream is another feature branch" — each PR is independent from the forge's perspective, so rebasing one layer in the stack requires manually re-targeting every PR below it. FAANG-internal tools solve this by storing the stack relationship in a metadata layer outside git itself, then regenerating the PR graph after each rebase. Without that layer, the bookkeeping falls on the developer, which is why most teams abandon the workflow after two or three levels deep regardless of how disciplined they are.
Re:Trunk Based Development
by swiftcoder on Saturday February 21, 2026 @08:29AM
(#47100650)
We seem to be reaching some sort of consensus among major code review partners on a standard for this information[1]
[1]: https://lore.kernel.org/git/CAESOdVAspxUJKGAA58i0tvks4ZOfoGf...
Seriously wish the stacked PR workflow would gain more traction outside of FAANG. Apart from the (somewhat pricey) Graphite offering, there's no standard UI for managing stacked PRs in the wild.