Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomhoule/zig-diff
Text diffing in zig
https://github.com/tomhoule/zig-diff
Last synced: 1 day ago
JSON representation
Text diffing in zig
- Host: GitHub
- URL: https://github.com/tomhoule/zig-diff
- Owner: tomhoule
- License: apache-2.0
- Created: 2022-01-21T20:40:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-15T12:49:16.000Z (over 1 year ago)
- Last Synced: 2024-10-31T04:50:39.443Z (9 days ago)
- Language: Zig
- Homepage:
- Size: 31.3 KB
- Stars: 13
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - zig-diff🗒️Text diffing in zig
README
# zig-diff
Zig text diffing library inspired and partially based on
[diff-match-patch](https://github.com/google/diff-match-patch) and David
Tolnay's [dissimilar](https://github.com/dtolnay/dissimilar) Rust crate.The basic approach is [Myers' diff
algorithm](https://neil.fraser.name/writing/diff/myers.pdf). Both bytewise
diffing and utf-8 aware diffing are supported.**This project should be considered alpha quality**, the test suite isn't
particularly exhaustive and there are a number of improvements to be made for
more readable diffs. The public API will change.The diff-match-patch library and dissimilar implement [semantic
cleanups](https://neil.fraser.name/writing/diff/) for more human-friendly,
readable diffs. This is something we will implement in this library, but we
don't have it yet.This project is developed and tested on Zig 0.9.