aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/resources/org
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-09-02 12:53:27 -0700
committerChris Aniszczyk <caniszczyk@gmail.com>2010-09-06 21:37:11 -0500
commit67263e2056108e471d684c3cef9e719724b51220 (patch)
treee4ea7623e4b0884b542c77167ab456e3643eb5ed /org.eclipse.jgit/resources/org
parent18aadc826dae7c6308c2a6c68d48ab75c8dd9b6d (diff)
downloadjgit-67263e2056108e471d684c3cef9e719724b51220.tar.gz
jgit-67263e2056108e471d684c3cef9e719724b51220.zip
Refactor diff sequence API
Instead of making the sequence itself responsible for the equivalence function, use an external function that is supplied by the caller. This cleans up the code because we now say cmp.equals(a, ai, b, bi) instead of a.equals(ai, b, bi). This refactoring also removes the odd concept of creating different types of sequences to have different behaviors for whitespace ignoring. Instead DiffComparator now supports singleton functions that apply a particular equivalence algorithm to a type of sequence. Change-Id: I559f494d81cdc6f06bfb4208f60780c0ae251df9 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit/resources/org')
0 files changed, 0 insertions, 0 deletions