News for hackers. Stuff that matters.
Re:Show HN: Why you should not use feature branches by maushu on Friday April 19, 2019 @07:12AM (#19698542)
Someone forgot about continuously merging master to feature branch to keep the merge simple.
Re:Show HN: Why you should not use feature branches by aequitas on Friday April 19, 2019 @08:29AM (#19698993)
Please don't merge continuously, rebase instead. You have to handle the conflict one way or the other. But at least rebasing doesn't give you an incomprehensible git history filled with spaghetti and extraneous merge commits.
Re:Show HN: Why you should not use feature branches by ulisesrmzroche on Friday April 19, 2019 @10:10AM (#19699739)
You can always squash the branch before merging back to master.
Re:Show HN: Why you should not use feature branches by rejschaap on Friday April 19, 2019 @07:27AM (#19698614)
If everyone is working in a feature branch and only bug fixes are done in master, then most of the merges will be simple. However, when a feature is done and merged to master, all the feature branches need to merge the work and that merge will be disproportionately difficult.

kennethh posted a link that explains this well: https://martinfowler.com/bliki/FeatureBranch.html

Re:Show HN: Why you should not use feature branches by rurban on Friday April 19, 2019 @08:29AM (#19698996)
Only if you don't know rerere, and don't use it immediately after updating master. I carry tons of feature branches with me, which are automatically rebased. Only once or twice a year I need to fixup things a bit, and those things are the things I immediately worked on, so I know for sure how to merge it. Everything is scripted.

If you let them stall it becomes a mess, sure. If do it properly it's trivial.

Re:Show HN: Why you should not use feature branches by AstralStorm on Friday April 19, 2019 @07:54AM (#19698755)
You cannot avoid this, only can parcel the cost and accept more breakage on the way.

With a big merge, others have time to inspect and know of breaking changes. with million tiny merges (or working on trunk, same) you either freeze change due to risk of breakage or end up with broken master regularly.