This application patches a file using the diff generated by gumtree-spoon-ast-diff. It is similar to the patch utility in Linux except diffmin also aims to minimise the resultant diff between the two files by keeping only the AST changes.
This package is not published yet but one can build the project from source.
- Java 11+ JDK
- Maven
- Git
-
Clone the repository.
git clone https://github.com/SpoonLabs/diffmin.git
-
Build a single jar file for this project and its dependencies.
mvn compile assembly:single
Once the jar is built, the main method can be invoked using just one command.
java -jar target/diffmin-1.0-SNAPSHOT-jar-with-dependencies.jar <prev.java> <new.java>
Tests are under src/test
. They can be run by executing the following command.
mvn test
Licensed under the MIT License. See the license file for more details.
Issues such as bug reports, feature requests, enhancements, or questions can be reported at the issues tab of this repository. We don't follow an exact template but please explain your query as much as possible.
Diffmin is currently in its rudimentary stages, so we are not expecting a pull request from outside contributors as there are not many features to work on as of now. We will update the instructions when we feel that we have enough issues to tackle. In that case, we would encourage contributions from anyone.
Internally, we do follow some guidelines before submitting a pull request.
- PR title aptly describes the changes proposed.
- PR is coupled with a description, so it makes the process of reviewing easier.
- PR addresses a single thing, e.g. a single feature or a bug.
The list of authors and contributors can be found here.