Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 647 Bytes

File metadata and controls

10 lines (8 loc) · 647 Bytes

Diff algorithm is copy-pasted from jgit Last change: 1c886d92f6de1d577cbcc212e1e25b2c3207d5fb
Last change date: 16.11.2022

How to use

  1. Get instance val algorithm = DiffAlgorithm.getAlgorithm(DiffAlgorithm.SupportedAlgorithm.HISTOGRAM)
  2. Implement Sequence and SequenceComparator for your data type (see StringSequence and StringComparator for example)
  3. Generate diff by calling algorithm.diff(sequenceComparator, sequenceA, sequenceB)
  4. Traverse resulting EditList