diff
Diff
Pure Crystal implementation of various diffing algorithms. Currently includes:
- Myers
- Myers (linear)
Installation
-
Add the dependency to your
shard.yml
:dependencies: diff: github: watzon/diff
-
Run
shards install
Usage
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
- Fork it (https://github.com/watzon/diff/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Chris Watson - creator and maintainer
Repository
diff
Owner
Statistic
- 8
- 2
- 0
- 2
- 1
- over 4 years ago
- May 12, 2020
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 05:20:24 GMT
Languages