If files are moved, they might change ownership. This tools currently doesn't notice that: we only check files that exist in the currently checked out branch.
We should:
- use
git ls-tree instead of git ls-files to get the files that exist on the target branch;
- use
git diff to find moved files and show their codeowner changes, too.
If files are moved, they might change ownership. This tools currently doesn't notice that: we only check files that exist in the currently checked out branch.
We should:
git ls-treeinstead ofgit ls-filesto get the files that exist on the target branch;git diffto find moved files and show their codeowner changes, too.