git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Allow tuning of the threshold for detecting renames/copies.

From
TNTorgny Nyblom <kde@nyblom.org>
Date
Nov 24, 2010, 14:31 UTC
Message-ID
<20101124153104.3cc1135e@explosive.nyblom.org>
A patch originally from Jeff King, it allows tuning of the threshold for detecting renames/copies when using git log.
From: Jeff King <peff@peff.net>
Signed-off-by: Torgny Nyblom <kde@nyblom.org>
---
 tree-diff.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tree-diff.c b/tree-diff.c
index 12c9a88..378f049 100644
--- a/tree-diff.c
+++ b/tree-diff.c
@@ -351,6 +351,7 @@ static void try_to_follow_renames(struct tree_desc *t1, struct tree_desc *t2, co
 	diff_opts.output_format = DIFF_FORMAT_NO_OUTPUT;
 	diff_opts.single_follow = opt->paths[0];
 	diff_opts.break_opt = opt->break_opt;
+	diff_opts.rename_score = opt->rename_score;
 	paths[0] = NULL;
 	diff_tree_setup_paths(paths, &diff_opts);
 	if (diff_setup_done(&diff_opts) < 0)
-- 
1.7.1
Message 1 of 1 in “Allow tuning of the threshold for detecting renames/copies.”
  1. Allow tuning of the threshold for detecting renames/copies.Torgny Nyblom, Nov 24, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.