Avoiding the merge trap
Avoiding the merge trap
Posted Apr 19, 2023 21:42 UTC (Wed) by kleptog (subscriber, #1183)In reply to: Avoiding the merge trap by taladar
Parent article: Avoiding the merge trap
Then I'm wondering what mean by a "topic branch"? In principle, one ticket is one patch unless it's something large. Bug-fixes are very small commits generally. New features also, but if they get larger you split it up across components, say, one for the API change, one for the frontend. The only times recently I've actually made what I would call a 'topic branch" was when we were doing a major refactor creating an entirely new component, that might require 10+ patches. For changes that require only a handful of patches I don't bother with a branch.
The only real criteria is that a single patch should be small enough to be easily reviewable, and must pass all the buildbot tests. Grouping patches by merging branches has always seemed like overhead to me. It's absolutely great that Git has merges and makes them easy, but I don't see how they add value the resulting history.