News for hackers. Stuff that matters.
Re:Fortunately, I don't squash my commits by delecti on Monday October 05, 2020 @08:45AM (#24687221)
I think you just highlighted one source of the disagreement. Nobody on any team I work with would accept a PR with 3000 lines of change. Each team had a policy, whether formal or informal, to break large work items across PRs so they were more easily reviewable. I would say that 300 lines changed is getting towards the bigger end of what we would accept. If your choice is between 30 or 3000 lines changed per commit, then for sure I'd pick 30, but above either I think a 300 line limit is more sensible.
Re:Fortunately, I don't squash my commits by grumple on Monday October 05, 2020 @08:58AM (#24687330)
Yeah, that’s nice in theory, but in practice the situation is often less ideal. Some features, partially implemented, would break existing functionality if not completed, and merging those upstream prior to total completion is therefore impossible. And on the other side of things, some environments and features require large, systemic changes. This is, surely, an organizational failing, but one that we must adapt to.
Re:Fortunately, I don't squash my commits by delecti on Monday October 05, 2020 @09:03AM (#24687365)
Then that's the other half of my point. If you can limit PRs to 300, then merging PRs into a single commit is better. If you can't, then maybe squashing isn't ideal.
Re:Fortunately, I don't squash my commits by Aeolun on Monday October 05, 2020 @10:06AM (#24687852)
Convert all the JS files to Typescript, suddenly you get blame ed for everything.