Skip to content

daimaou92/difflore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning text diffs [rust]

Steps

  1. file1 and file2 in <root>/ directory are taken as inputs
  2. file1 is treated as the original file. file2 is treated as the new one.
  3. Run the Myers Diff algorithm on them using cargo run --bin myers
  4. Every deleted line is printed begining with -
  5. Prefix for additions is and for identical lines its two blank spaces.

Thanks

  1. Awesome explanation of Myer's Algo

Releases

No releases published

Packages

No packages published

Languages