]> source.dussan.org Git - jgit.git/commit
Enable public access to SimilarityIndex scoring function 74/48574/3
authorDavid Pletcher <dpletcher@google.com>
Mon, 25 May 2015 21:49:58 +0000 (14:49 -0700)
committerDavid Pletcher <dpletcher@google.com>
Tue, 26 May 2015 20:27:33 +0000 (13:27 -0700)
commit5e57cc95854dbf84bfafe3e61791a99b4d86746e
tree29c25bdd3f8a9b91ac92975e292c01910aaba8a0
parent4d565f0b5fcb85450bad603950dd17ca29847783
Enable public access to SimilarityIndex scoring function

The SimilarityIndex class implements the useful capability of scoring
the similarity between two files. That capability is required for a
feature that's being developed in another package, to detect files
derived from a set of potential sources.

This CL adds a public factory method to create a SimilarityIndex from
an ObjectLoader. It grants public access to the SimilarityIndex class,
the score method, an inner exception class and a special marker
instance of that exception class.

Change-Id: I3f72670da643be3bb8e261c5af5e9664bcd0401b
Signed-off-by: David Pletcher <dpletcher@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/diff/SimilarityIndex.java