Skip to content

Conversation

@skshetry
Copy link
Collaborator

@skshetry skshetry commented Aug 8, 2022

We were only joining paths when new_obj was a tree. But technically they could be absent from the workspace or cache which prevented from path joining, hence all of the items inside a tree would show up with the root's name. Now, we check for either-or.

Fixes #8053.

Another tricky thing here that I have ignored for now is, what happens if the old obj was a tree and the new obj is a hashfile? Currently diff does not work with non-tree objects (i.e. hashfile), so we'd have to handle that here if we decided to support this (which we should but not here).

@skshetry skshetry added bugfix fixes bug A: cli Related to the CLI A: status Related to the dvc diff/list/status labels Aug 8, 2022
@skshetry skshetry requested a review from efiop August 8, 2022 12:09
@skshetry skshetry requested a review from a team as a code owner August 8, 2022 12:09
@skshetry skshetry self-assigned this Aug 8, 2022
@skshetry skshetry merged commit 7c1e339 into treeverse:main Aug 9, 2022
@skshetry skshetry deleted the fix-8053 branch August 9, 2022 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: cli Related to the CLI A: status Related to the dvc diff/list/status bugfix fixes bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

data:status: --granular --with-dirs returns duplicates for deleted directory

1 participant