In Praise of Stacked PRs
benjamincongdon.me
In Praise of Stacked PRs
1–10 of 230 posts
Re: In Praise of Stacked PRs
#2Re: In Praise of Stacked PRs
#3Re: In Praise of Stacked PRs
#4Re: In Praise of Stacked PRs
#5An alternative solve is to work in a way that allows PRs to be merged more quickly, ie pairing, mobbing, or prioritizing getting reviews done asap.
Re: In Praise of Stacked PRs
#6I previously worked somewhere that used Phabricator. Its “stacked diffs” worked great. I’d use it all the time when working on complex, multipart changes.
Re: In Praise of Stacked PRs
#7Re: In Praise of Stacked PRs
#8Re: In Praise of Stacked PRs
#9Currently, one can just do it by never modifying the underlying "branch" (i.e. just adding new commits), but in practice that doesn't always work, as many times you have to rebase against one's master/main branch to pull in changes, which even if no conflicts, will reflow your "base" branch" changing all the commits.
TLDR: Basically, want to be able to state that branch depends on branch (which is currently commit id x) but if I rebase, use whatever the current commit id is for that branch, not whatever it was when I first made the branch.
possible? stupid idea? thoughts?
Re: In Praise of Stacked PRs
#10I’ve played with this idea a bit. In my experience it felt like a hack to work around the fact that individual PRs took a while to get merged. An alternative solve is to work in a way that allows PRs to be merged more quickly, ie pairing, mobbing, or prioritizing getting reviews done asap.
In my experience with this sort of process you spend quite a lot of time managing your different branches, especially once you start getting feedback and requests for changes. Then keeping everything in sync. Git helps make this quicker but it’s still effort & cognitive load.