diff
Version, currently master branch1 version
- master branchlatestMay 12, 2020
github.com/watzon/diff
Pure Crystal implementation of various diffing algorithms
8 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
diff:
github: watzon/diff
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.34.0- License
- MIT
- Author
- Chris Watson <cawatson1993@gmail.com>
Dependencies
Runtime Dependencies
- cor*github: watzon/cor, branch: master
README
# Diff
Pure Crystal implementation of various diffing algorithms. Currently includes:
- Myers
- Myers (linear)
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
diff:
github: watzon/diff
```
2. Run `shards install`
## Usage
```crystal
require "diff"
a = File.open("foo.cr")
b = File.open("foo_edited.cr")
diff = Diff.new(a, b, Diff::MyersLinear)
puts diff.to_s
```
## Contributing
1. Fork it (<https://github.com/watzon/diff/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Chris Watson](https://github.com/watzon) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- May 12, 2020
- Crystal
0.34.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/watzon/diff
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1