Commit b5a7af28894331c3ab920737a5608172a445e3fc

Edward Thomson 2021-10-13T21:53:27

Merge pull request #6092 from libgit2/ethomson/diff_rename_limit

diff --git a/include/git2/diff.h b/include/git2/diff.h
index a14c019..b0119b9 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -768,7 +768,7 @@ typedef struct {
 	 *
 	 * This is a little different from the `-l` option from Git because we
 	 * will still process up to this many matches before abandoning the search.
-	 * Defaults to 200.
+	 * Defaults to 1000.
 	 */
 	size_t rename_limit;
 
diff --git a/src/diff_tform.c b/src/diff_tform.c
index 908175d..597e64e 100644
--- a/src/diff_tform.c
+++ b/src/diff_tform.c
@@ -241,7 +241,7 @@ int git_diff_find_similar__calc_similarity(
 
 #define DEFAULT_THRESHOLD 50
 #define DEFAULT_BREAK_REWRITE_THRESHOLD 60
-#define DEFAULT_RENAME_LIMIT 200
+#define DEFAULT_RENAME_LIMIT 1000
 
 static int normalize_find_opts(
 	git_diff *diff,