mergeBranchesByThreeWay

Merges two specified branches using the three-way merge strategy.