summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2021-10-13 21:53:27 -0400
committerGitHub <noreply@github.com>2021-10-13 21:53:27 -0400
commitb5a7af28894331c3ab920737a5608172a445e3fc (patch)
tree94c965a5ca2add9ccaa0192ee5b999aae374b2f2
parentb7bad55e4bb0a285b073ba5e02b01d3f522fc95d (diff)
parent1738f7320d81e316f782a2fddc45233864dc6929 (diff)
downloadlibgit2-b5a7af28894331c3ab920737a5608172a445e3fc.tar.gz
Merge pull request #6092 from libgit2/ethomson/diff_rename_limit
-rw-r--r--include/git2/diff.h2
-rw-r--r--src/diff_tform.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h
index a14c01993..b0119b9f7 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 908175d34..597e64e45 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,