A diff tool that employs the longest common subsequence algorithm to compare files and strings.
diffrs <file_1> <file_2>
To compare two strings, add the -w flag:
diffrs -w <string_1> <string_2>
To get started, first install Rust, and then run the following commands:
git clone https://github.com/dhirajgagrai/diffrs.git
cd diffrs
# Compile
cargo build --release
# Run
cargo run --release -- examples/file_1.txt examples/file_2.txt
To use diffrs
command, create a symlink or copy the executable to a directory in your $PATH.
sudo cp target/release/diffrs /usr/local/bin
- Add line-oriented format
- Support hunks
- String comparisons from CLI
Feel free to contribute, report issues, or provide feedback to help improve the project.