Apply merged patches to produce resolved content
Apply merged patches to produce resolved content

Once we've merged patches from the left and right branches into a single
patch series, we're ready to generate merged output.  We do this by
sorting the merged patch series into canonical order (an optimization)
and then apply it to the original content.

By using canonical order, we can apply patches with only a single pass
through the data.  Otherwise, we have to search for where a patch
applies, create intermediate content, then apply subsequent patches to
this.  Using canonical patch order allows us to reuse patch:diff/3 since
it produces patch series in that order.

mndrix/tp