Changelist not reflecting the accurate code changes in the "Preview Diff" section

Answered

Consider the file (Test.cs) with the text:

 

  • In it, I moved line #3 to "Staged" changelist
  • And line #5 to "Unstaged" changelist

 

Issue: "Preview Diff" section is not accurately displaying the related changes.

Notice below, when the staged version is selected all changes are still shown in the "Preview Diff" section

Same as above, when the unstaged version is selected all changes are still shown in the "Preview Diff" section

However, changes (changelist assignment) reflect correctly in the normal file view, see below:

3 comments

 That's because in the Unified view there is no per-changelist separation. Switching to two-sided diff will show changes per-changelist.

It has not yet been implemented for the Unified view as this is not very popular but requires a lot of changes to be implemented. However, this might changed when committing separate lines is available.

1

I think it is better to convert to a request to show changes per changelist in the Unified view. I couldn't find one.

0

Please sign in to leave a comment.