Avoiding the merge trap
Avoiding the merge trap
Posted Apr 22, 2023 14:24 UTC (Sat) by kleptog (subscriber, #1183)In reply to: Avoiding the merge trap by marcH
Parent article: Avoiding the merge trap
> In that case merging is superior because in case of a logical conflict then only the merge commit is broken, all the commits leading to it are still functional on both branches. When rebasing instead then ALL the rebased commits are broken by such a logical conflict. Forensics are also made more difficult.
The conflict is there, so needs to be resolved somewhere. The downside of doing it in the merge commit is that it's probably being done by someone other than the author. By asking the authors to rebase you push the work to the people who are most qualified to do it.
> One way to mitigate this is to actually TEST the rebased commits in CI:
Well of course you should test the individual commits again after rebasing, anything else is silly.