Skip to content

ZjzMisaka/Diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diff

WTFPL

Get textual diffs.

Download

Diff is available as Nuget Package now.

Functions

static public List<DiffRes> Diff(List<string> orig, List<string> rev);
static public List<DiffRes> Diff(string orig, string rev);
static public List<GroupedDiffRes> GetGroupedResult(List<DiffRes> diffResList);
static public List<SplitedDiffRes> GetSplitedResult(List<DiffRes> diffResList);
static public List<SplitedDiffRes> GetSplitedResult(List<GroupedDiffRes> rangeList);

Class

DiffRes

DiffType type;
int origIndex;
int revIndex;

GroupedDiffRes

int rangeStart;
int rangeEnd;
DiffType type;

SplitedDiffRes

int origIndex;
int revIndex;
SplitedDiffType type;

Enum

DiffType

  • Add
  • Delete
  • None

SplitedDiffType

  • Add
  • Delete
  • None
  • Modify