summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2017-05-24 09:26:40 -0400
committerDave Borowitz <dborowitz@google.com>2017-05-24 09:26:40 -0400
commita46b28808b303d326eb79c7a42aec0147e171a39 (patch)
tree07e9937cc5b458d99da184ec8c5833d432d7b266
parent099dbe6ef5593545452a593083d92627f40e98c2 (diff)
downloadjgit-a46b28808b303d326eb79c7a42aec0147e171a39.tar.gz
jgit-a46b28808b303d326eb79c7a42aec0147e171a39.zip
RenameDetector: Clarify rename limits <= 0
Change-Id: I8da386e02272316b8e5e5c2f31ce10ad98bcdb28
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java b/org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java
index bc52473d93..d899429c3b 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java
@@ -220,7 +220,9 @@ public class RenameDetector {
* must be allocated, and 1,000,000 file compares may need to be performed.
*
* @param limit
- * new file limit.
+ * new file limit. 0 means no limit; a negative number means no
+ * inexact rename detection will be performed, only exact rename
+ * detection.
*/
public void setRenameLimit(int limit) {
renameLimit = limit;