xdiff: post-process hunks to make them consistent.