241
241
new_tree = self.work_tree
242
242
old_path = old_tree.id2path(file_id)
243
243
new_path = new_tree.id2path(file_id)
244
text_differ = diff.DiffText(old_tree, new_tree, diff_file,
245
246
patch = text_differ.diff(file_id, old_path, new_path, 'file', 'file')
247
248
return patches.parse_patch(diff_file)