[PATCH] Tweak diffcore-rename heuristics.
authorJunio C Hamano <junkio@cox.net>
Sat, 21 May 2005 22:55:18 +0000 (15:55 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 21 May 2005 23:22:57 +0000 (16:22 -0700)
commit58b103f55d5b95dc24cce2fb4f64e697958fd204
treef04b5da80a0a50880495563a367a5b18a9413828
parentd6db01075b65da2b8584a0450619390893aae103
[PATCH] Tweak diffcore-rename heuristics.

The heuristics so far was to compare file size change and xdelta
size against the average of file size before and after the
change.  This patch uses the smaller of pre- and post- change
file size instead.

It also makes a very small performance fix.  I didn't measure
it; I do not expect it to make any practical difference, but
while scanning an already sorted list, breaking out in the
middle is the right thing.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diffcore-rename.c