Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrien-zinger/diff
Compute diff between files / apply / restore
https://github.com/adrien-zinger/diff
Last synced: 19 days ago
JSON representation
Compute diff between files / apply / restore
- Host: GitHub
- URL: https://github.com/adrien-zinger/diff
- Owner: adrien-zinger
- Created: 2021-08-31T07:36:31.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T06:22:57.000Z (over 2 years ago)
- Last Synced: 2024-03-15T00:55:41.747Z (8 months ago)
- Language: Rust
- Size: 36.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Diff
Compute the diff between two vectors with the [Levenshtein](https://en.wikipedia.org/wiki/Levenshtein_distance) algorithm.In order to continue my data sharing P2P project from scratch I want to study data compression and diff compution. :zap:
# Usage
Normal use for binaries:
- `diff_tool first.pack second.pack mydiff.d`
- `diff_tool --apply=true mydiff.d first.pack dest.pack`Normal use for plain text files:
- `diff_tool first.txt second.txt mydiff.d`
- `diff_tool --binary=false --apply=true mydiff.d first.txt dest.txt`## Roadmap
- [x] Create a *diff* file between two binary files *src* *target*
- [x] Compute a *dest* file combining *target* + *diff*
- [x] Restore old target file with *dest* - *diff*
- [x] create a real usable tool to get diffs recursively in a folder tree
- [ ] Think about optimising data compression
- [ ] Make unit tests testing something instead of verify manually with `cargo test -- --nocapture`