summaryrefslogtreecommitdiff
path: root/diffcore-rename.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-21 23:33:32 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-22 09:46:06 -0700
commit26dee0adfcfa6fc15a522d32765eabbe4f295237 (patch)
tree744bc9a8bf0b977fe389833f14c2f9b06e9c94da /diffcore-rename.c
parentcd1870edb6658d8118ed6015651a0ff080ae7162 (diff)
downloadgit-26dee0adfcfa6fc15a522d32765eabbe4f295237.tar.gz
[PATCH] Add the code to set default minimum score back in.
When the minimum score is specified as 0 (meaning "use default value"), set it to the default as we are told. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'diffcore-rename.c')
-rw-r--r--diffcore-rename.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/diffcore-rename.c b/diffcore-rename.c
index ff5c182df8..8de80dfe73 100644
--- a/diffcore-rename.c
+++ b/diffcore-rename.c
@@ -235,6 +235,8 @@ void diff_detect_rename(int detect_rename,
int h, i, j;
int num_create, num_src, dst_cnt, src_cnt;
+ if (!minimum_score)
+ minimum_score = DEFAULT_MINIMUM_SCORE;
outq.queue = NULL;
outq.nr = outq.alloc = 0;