xdiff: provide a separate emit callback for hunks