Just copy the printFile part from the end of doDiff
to the end of the patch part earlier.