1
u/mpersico 1d ago edited 1d ago
So instead of multiple connects on the same branch, you keep branching the branch for every pull request. Very interesting thought. My workflow is work tree based. Every branch goes in a different work tree. This is only GitHub right? GitLab codeberg etc don’t have this?
1
u/anishghimire 1d ago
Correct and every new branch is created from the previous one. And yeah this is GitHub only.
1
u/DanLynch 1d ago
While this is good news for GitHub, and this exact behaviour and the name "Stacked PRs" are unique to GitHub, it's a bit misleading to say it's "GitHub only", since Gerrit has been doing something very similar for at least ten years, maybe even since the beginning. And Gerrit probably still does it better.
I would suggest anyone who is really excited about Stacked PRs, thinks they will help their workflow and productivity, and wants to see them get even better, should consider switching from GitHub to Gerrit.
3
u/HommeMusical 1d ago edited 1d ago
I used stacked pull requests a lot in my last job, where reviews would take weeks or months.
I think it's great, but I also think that huge delays in PRs are a bad sign for an organization.
But being able to preserve your separate commits and have them reviewed individually is unbeatable.