File renames aren't handled properly because PatchedFile.path returns a source filename which doesn't exist after the operation. Probably it should return a target filename.
|
filepath = self.source_file |
Due to that, tools which detect changed files (like lint-diffs) use non-existing files.
File renames aren't handled properly because PatchedFile.path returns a source filename which doesn't exist after the operation. Probably it should return a target filename.
python-unidiff/unidiff/patch.py
Line 369 in 9a473c8
Due to that, tools which detect changed files (like lint-diffs) use non-existing files.