An open API service indexing awesome lists of open source software.

https://github.com/daimaou92/difflore

figuring out text diffs from zero
https://github.com/daimaou92/difflore

diff learning-by-doing myers-algorithm rust rust-lang

Last synced: about 1 month ago
JSON representation

figuring out text diffs from zero

Awesome Lists containing this project

README

          

## Learning text diffs [rust]

### Steps
1. `file1` and `file2` in `/` 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](https://neil.fraser.name/writing/diff/myers.pdf)
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](https://blog.jcoglan.com/2017/02/12/the-myers-diff-algorithm-part-1/)