Skip to content
/ diff Public

Pure Crystal implementation of various diffing algorithms

License

Notifications You must be signed in to change notification settings

watzon/diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 12, 2020
1917527 · May 12, 2020

History

2 Commits
May 12, 2020
May 12, 2020
May 12, 2020
May 12, 2020
May 12, 2020
May 12, 2020
May 12, 2020
May 12, 2020

Repository files navigation

Diff

Pure Crystal implementation of various diffing algorithms. Currently includes:

  • Myers
  • Myers (linear)

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      diff:
        github: watzon/diff
  2. 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

  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

About

Pure Crystal implementation of various diffing algorithms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published