-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(affected): consider both source and destination as changed (#9422)
### Description Previously we would only consider the destination file moved as changed and not the source. We use `diff-tree` instead of `diff` to track these moves. This PR also fixes an issue where `include_uncommitted: false` was not respected if `to_commit` wasn't present i.e. we would always return uncommitted changes. This did not affect users since this API isn't exposed to users and there's no way to set `include_uncommitted: false` without setting a `to_commit`. ### Testing Instructions Added unit test where a file is moved between packages. Also added additional checks for our `changed_files` tests
- Loading branch information
1 parent
5491695
commit 81b9260
Showing
1 changed file
with
107 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters