Write proper diff outputs with explicit filenames.