Hacker News new | ask | show | jobs
by LoganDark 14 days ago
> Perhaps the value becomes clear on larger teams, big monorepos?

I find it incredibly useful as an individual contributor opening many PRs on a single upstream project. I can rebase all my PRs onto new upstream changes in one go, I can easily keep the commit graph neat, I can easily squash changes down into specific PRs while keeping my working tree positioned after they all merge together. Really speeds up my workflow, it's awesome. And it's really cool that merge conflicts don't block operations. It's really limiting that git has only one active branch at a time.

1 comments

Interesting! Thanks for the explainer, speed / concurrent development makes sense; that's one area I probably subconsciously steer away from due to the awkwardness.
>> I find it incredibly useful as an individual contributor opening many PRs on a single upstream project

> I probably subconsciously steer away from due to the awkwardness.

I think if I need to rebase a PR enough while waiting for merge that it's a coordination issue and maybe too much churn in the codebase. There shouldn't be a need to do so. Not sure I'd blame git for that.

I have to be the one to rebase my PR or my signature will become invalid. The only valid way to merge my commits is via fast-forward.

(Do let me know if this has changed, but I've seen any other kind of merge result in the yellow "Unverified" status on GitHub, as I have the thing turned on that requires all commits from me to be signed with my own key.)

That's just the surface concern. Why is the review time so large that you have multiple PRs ongoing? Why is the codebase churning you have conflicting changes that aren't trivial?
No one is obligated to review PRs in a timely manner, nor stop development for me in particular. The entire point of a PR is that I put in all the work to maintain it as long as it is open, and eventually someone may get around to reviewing and potentially merging it. Upstreaming is a volunteer process.
I thought it was in a team setting, especially with the requirement for signed commits.