Add diff.RawText to index a file content for later compares
commit5e7a76532ee10b0cee5d1f177c1fde5b0f3c02fb
authorJohannes E. Schindelin <johannes.schindelin@gmx.de>
Sat, 2 May 2009 02:08:45 +0000 (1 19:08 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 4 May 2009 22:42:15 +0000 (5 00:42 +0200)
tree3bcaf0eb4452e5678f37fc4b83d9991dce5362af
parentd1d42ea7d179e51ac103219e0db5892971663144
Add diff.RawText to index a file content for later compares

The RawText class converts a byte[] into an indexed map of file
lines, assuming the source content is a UNIX formatted text file.
This fits in line with Git's usage of libxdiff, where typically
the file content is treated as a UNIX formatted text file, unless
binary content was previously detected in the file stream.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/diff/RawTextTest.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/diff/RawText.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/diff/Sequence.java [new file with mode: 0644]