You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Diff Utils library is an OpenSource library for performing the comparison operations between texts: computing diffs, applying patches, generating unified diffs or parsing them, generating diff output for easy future displaying (like side-by-side view) and so on.
11
12
12
13
Main reason to build this library was the lack of easy-to-use libraries with all the usual stuff you need while working with diff files. Originally it was inspired by JRCS library and it's nice design of diff module.
13
14
14
15
**This is originally a fork of java-diff-utils from Google Code Archive.**
15
16
16
-
##Examples ##
17
+
##Examples
17
18
18
-
Look[here](https://github.com/wumpz/java-diff-utils/wiki) to find more helpful informations and examples.
19
+
Look[here](https://github.com/wumpz/java-diff-utils/wiki) to find more helpful informations and examples.
19
20
20
21
These two outputs are generated using this java-diff-utils. The source code can also be found at the*Examples* page:
21
22
22
23
**Producing a one liner including all difference information.**
23
24
24
25
This is a test~senctence~**for diffutils**.
25
26
26
-
27
27
**Producing a side by side view of computed differences.**
28
28
29
29
|original|new|
@@ -32,23 +32,22 @@ This is a test ~senctence~**for diffutils**.
32
32
|This is the second line.|This is the second line.|
33
33
|~And here is the finish.~||
34
34
35
+
##Main Features
35
36
36
-
##Main Features ##
37
-
38
-
* computing the difference between two texts.
39
-
* capable to hand more than plain ascci. Arrays or List of any type that implements hashCode() and equals() correctly can be subject to differencing using this library
40
-
* patch and unpatch the text with the given patch
41
-
* parsing the unified diff format
42
-
* producing human-readable differences
43
-
* inline difference construction
44
-
* Algorithms:
45
-
* Myer
46
-
* HistogramDiff using JGit Library
37
+
* computing the difference between two texts.
38
+
* capable to hand more than plain ascci. Arrays or List of any type that implements hashCode() and equals() correctly can be subject to differencing using this library
39
+
* patch and unpatch the text with the given patch
40
+
* parsing the unified diff format
41
+
* producing human-readable differences
42
+
* inline difference construction
43
+
* Algorithms:
44
+
* Myer
45
+
* HistogramDiff using JGit Library
47
46
48
-
###Algoritms ###
47
+
###Algoritms
49
48
50
49
* Myer's diff
51
-
* HistogramDiff
50
+
* HistogramDiff
52
51
53
52
But it can easily replaced by any other which is better for handing your texts. I have plan to add implementation of some in future.
54
53
@@ -91,24 +90,26 @@ Recently a checkstyle process was integrated into the build process. java-diff-u