News for hackers. Stuff that matters.
Re:Trunk-Based Development by nhumrich on Sunday January 29, 2017 @10:43AM (#13514569)
The gain is early integration. If you have more than one branch going on at the same time, they can diverge quite significantly, and merging can cause bugs, or sometimes more work. If you only ever have one feature branch at a time, you might as well be doing trunk based with manual deploys to prod.
Re:Trunk-Based Development by hashkb on Sunday January 29, 2017 @10:49AM (#13514607)
Rebase early and often and this isn't an issue. Some see this as a chore, but I view it as taking advantage of the tool's power. You resolve the same set of conflicts as you would merging, but (as you say) earlier.

Edit: I don't think anyone was trying to imply a single allowed feature branch at a time; we can probably all easily agree that's basically no different than working on master.

Re:Trunk-Based Development by nhumrich on Sunday January 29, 2017 @10:58AM (#13514667)
Yes, rebase early and often works great. But if your branch includes a major refactor, your going to find yourself editing others code to get your rebase to work. That just increases your own scope. But yes, rebase often is often a very viable strategy. In practice though, I find very few that actually do it because it becomes painful when your branch lives too long simply because business isn't ready to ship something
Re:Trunk-Based Development by notarealdoctor on Sunday January 29, 2017 @11:15AM (#13514796)
Rebase is evil.
Re:Trunk-Based Development by angry_octet on Monday January 30, 2017 @07:40AM (#13520670)
Can you explain how a repo with dozens of feature flags triggering greatly different code paths, and invisible to the source code management system, is an improvement on feature branching?

How would I use git bisect with a bunch of flags to a composite of build systems?