-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Is your feature request related to a problem? Please describe.
It often happens that a refactoring takes place, where a file is broken into parts or we move several related classes to one file. It often also includes small refactoring of the code itself. Currently no git tool can help with that case, and all of them show changes as "deleted files X Y Z, added files A B C". This makes the PR review process terribly difficult when aside from split code there are also semantic changes underneath.
Describe the solution you'd like
It would be nice if files were just anther abstraction above the AST and semantic diff could also show moves and refactors of code between different files.
Describe alternatives you've considered
I am using difftastic
tool and I had some success by running git diff <baseBranch>:<masterFileA> <refactorBranch>:<splitPartA>
for all paths that I know changed and moved, but when reviewing someone else's code I usually don't.
Additional context
It would be usefull to show semantic diff for a whole PR across many files as well.