Live data from Hacker News

Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others

github.com

71–72 of 72 posts

Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others

#71
post #18

Earlier quoted context omitted.

I’ve worked under both systems, but isn’t the purity you’re describing a bit of a dodge in that you wind up force pushing amended commits when you find you forgot something?

Why is that a dodge? that's the expected way to work in this system, and it should be able to show you the interdiff between those amends.

Sorry, “dodge” was a loaded word. I suppose what I mean is, what’s the difference between a PR with multiple commits and a commit with multiple commits?

Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others

#72
post #71

Earlier quoted context omitted.

Why is that a dodge? that's the expected way to work in this system, and it should be able to show you the interdiff between those amends.

Sorry, “dodge” was a loaded word. I suppose what I mean is, what’s the difference between a PR with multiple commits and a commit with multiple commits?

I’m not sure what a “commit with multiple commits” is. I direct we’re talking past each other slightly :)

I think this is maybe what you’re asking about: with PRs, you often respond to feedback by adding new commits on to the PR. This is because code review is based on reviewing an entire branch. In a stacked diff based system, you respond to feedback by amending the commit. This is because reviews are tied to individual commits, not branches.

The reason people prefer this is that it keeps changes small and focused, and makes sure you have a high quality history. It also lets you assign different reviewers to different parts of your stack, which is helpful for all sorts of reasons. It also means that you can land earlier commits while waiting on review for the later commits, instead of holding it all up at once. Lots of stuff like this.

Post reply on HN