Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "Imaginary" diff change type?

Tags:

c#

diff

diffplex

I'm testing DiffPlex and I saw this enum:

public enum ChangeType
{
    Unchanged,
    Deleted,
    Inserted,
    Imaginary,
    Modified
}

All other ChangeTypes makes sense, but I cannot understand the meaning of "Imaginary" enum here, and I cannot find in Google about this in Diff languages, so I wonder if is something specific for DiffPlex.

like image 808
Click Ok Avatar asked Sep 06 '25 04:09

Click Ok


1 Answers

Ok, I understand now. When comparing side by side diffs, if we removed a line in left side, this line will not exists in right side. So the UI will show this fact as a "imaginary" line in right side.

like image 100
Click Ok Avatar answered Sep 09 '25 02:09

Click Ok