Home / Companies / Blacksmith / Blog / Post Details
Content Deep Dive

Stacked Diffs can be expensive: Why you should do it more

Blog post from Blacksmith

Post Details
Company
Date Published
Author
Aditya Maru
Word Count
1,373
Company Posts That Month
3
Language
English
Hacker News Points
4
Post removed?
No
Summary

Stacked diffs are a Git workflow that divides a large feature into a sequence of small, dependent pull requests, allowing each change to be reviewed, tested, and merged independently while development continues on later parts of the feature. Advocates argue that this approach reduces context switching, encourages more detailed reviews, and ensures each commit passes continuous integration checks, which can simplify debugging and regression analysis. Although stacked branches can be managed manually with Git, updating a lower branch requires rebasing dependent branches and resolving any resulting conflicts, a process that becomes difficult for longer stacks. Tools such as Graphite automate branch restacking, pull-request submission, conflict handling, visualization, and synchronization with the main branch. The approach can also increase CI usage and costs because each small pull request and restack may trigger additional workflows, leading the text to suggest selectively running checks through CI configuration or using faster, lower-cost CI infrastructure.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Observability 4 1,340 245 91 -23%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.