Is there a way to auto merge all the non-conflicting chunks?

In a 3 way merge editor, Is there a way with which i can merge all non-conflicting chunks on click of a button, leaving the conflicted ones to be resolved manually? Is it doable?

The library doesn’t do this for you, but I guess it’s possible to program it yourself.