Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e2072d1

Browse filesBrowse files
committed
README.md
1 parent 8ceaacc commit e2072d1
Copy full SHA for e2072d1

File tree

1 file changed

+39
-0
lines changed
Filter options

1 file changed

+39
-0
lines changed

‎README.md

Copy file name to clipboard
+39Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
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.
2+
3+
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.
4+
5+
# Main Features
6+
7+
* computing the difference between two texts.
8+
* 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
9+
* patch and unpatch the text with the given patch
10+
* parsing the unified diff format
11+
* producing human-readable differences
12+
13+
# Algoritms
14+
15+
This library implements Myer's diff algorithm. 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.
16+
17+
Changelog
18+
19+
* Version 1.2
20+
** JDK 1.5 compatibility
21+
** Ant build script
22+
** Generate output in unified diff format (thanks for Bill James)
23+
24+
# To Install
25+
26+
Just add the code below to your maven dependencies: <dependency> <groupId>com.googlecode.java-diff-utils</groupId> <artifactId>diffutils</artifactId> <version>1.2.1</version> </dependency>
27+
28+
And for Ivy: <dependency org="com.googlecode.java-diff-utils" name="diffutils" rev="1.2.1"/>
29+
30+
# Coming eventually
31+
32+
* support for inline diffs in output
33+
* helpers for showing side-by-side, line-by-line diffs or text with inter-line and intra-line change highlights
34+
* customization of diff algorithm for better experience while computing diffs between strings (ignoring blank lines or spaces, etc)
35+
* generating output in other formats (not only unified). E.g. CVS.
36+
37+
# Tutorials
38+
39+
http://www.adictosaltrabajo.com/tutoriales/tutoriales.php?pagina=CompararFicherosJavaDiffUtils (in Spanish). Thanks Miguel

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.