ZiheLiu / myers-diff

A shell tool to diff two files based with algorithm Myers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

myers-diff

Build Status

A shell tool to diff two files based with algorithm Myers. Here is the brief note of Myers.

Sample

old file

old file

new file

new file

diff

new file

Dependencies

  • maven > 3.0
  • java > 8.0

Usages

# copy pre-commit to ./.git/hooks
$ bash install.sh
# install dependencies
$ mvn install

# test
$ mvn test
# clean ./target
$ mvn clean
# package source code to ./target/project-name.jar
$ mvn package
# run the jar package. 
# First argument is old file.
# Seoncd argument is new file.
$ java -jar target/myers-diff-0.0.1.jar ./static/old ./static/new

About

A shell tool to diff two files based with algorithm Myers.


Languages

Language:Java 98.1%Language:Shell 1.9%