Added support for whitespace ignoring
commit543235b805d73b30f778255415ff2ec0d64b4334
authorJeff Schumacher <jeffschu@google.com>
Thu, 24 Jun 2010 20:39:50 +0000 (24 13:39 -0700)
committerJeff Schumacher <jeffschu@google.com>
Mon, 28 Jun 2010 17:59:10 +0000 (28 10:59 -0700)
treeb8affecd5b703f0a788a1924ea67be309cf993db
parent33ae23b8b9607e93e62280c47091624ef43d20eb
Added support for whitespace ignoring

JGit did not have support for skipping whitespace when comparing
lines in RawText objects. I added a subclass of RawText that skips
whitespace in its equals and hashCode methods. I used a subclass
rather than adding functionality into RawText so that performance
would not be impacted by extra logic.

This class only supports ignoring all whitespace. Others will follow
that allow other forms of whitespace ignoring.

Change-Id: Ic2f79e85215e48d3fd53ec1b4ad13373dd183a4a
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreAllWhitespaceTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/RawCharUtilTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/diff/RawTextIgnoreAllWhitespace.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/util/RawCharUtil.java [new file with mode: 0644]