It's an interesting idea, but even after reading this article I'm still not convinced it offers any serious advantages over a more traditional workflow. It also has the downside of requiring extensive use of more advanced features like interactive rebasing. (Which I personally have no issue with, but seems like a potential nightmare for developers who aren't as experienced with git.)
Stacked Diffs versus Pull Requests
41–50 of 77 posts
Re: Stacked Diffs versus Pull Requests
#42In the PR model, we can easily hook up a build system to automatically trigger builds on remote branches. How would that fit into this?
Re: Stacked Diffs versus Pull Requests
#43In the PR model, we can easily hook up a build system to automatically trigger builds on remote branches. How would that fit into this?
And that can be (and is) done with the stacked diffs model as well. CI is orthogonal to whether you use the PR model of the stacked diffs model.
Re: Stacked Diffs versus Pull Requests
#44Re: Stacked Diffs versus Pull Requests
#45Is this similar to Mercurial Queues?
Sometimes I really miss mq
Re: Stacked Diffs versus Pull Requests
#46How does this workflow work when there are 3 commits that need to be applied in order (A, B, and C), when C gets approved from a code-review standpoint before A and B?
The advantage is that each commit can be reviewed separately. You cannot achieve this with pulled requests as far as I know. I often see people creating a pull request and writing "this depends on PR #1233", the second PR is unreviewable because it contains changes from. The first PR. So the first PR has to merged first... It's a mess. But maybe I am just missing a big part of the PR workflow that solves this problem.
Re: Stacked Diffs versus Pull Requests
#47Earlier quoted context omitted.
And that can be (and is) done with the stacked diffs model as well. CI is orthogonal to whether you use the PR model of the stacked diffs model.
But what commit do you run the CI against? If you run it against a commit that's stacked on top of 3-4 other unreviewed changes, then the CI will include errors from all those other commits, not just yours.
Re: Stacked Diffs versus Pull Requests
#48The idea of "stacked diffs" looks like a good one, but this article doesn't do a great job of presenting them. It's way too long for the actual claims it makes. It combines two things: Working on a single branch and reviewing commits instead of branches. Reviewing commits instead of branches makes a lot of sense, and would definitely result in a cleaner history than pull requests seem to do in practice. The article a…
Re: Stacked Diffs versus Pull Requests
#49Earlier quoted context omitted.
Bisect on first-parent? Seems like a script exists (haven't tried): https://gist.github.com/ayust/2040290
Wouldn't this mean you just find the merge that caused the regression? The merge itself might bring in an awful lot of changes (of a single topic).