author | Junio C Hamano <junkio@cox.net> | |
Tue, 24 May 2005 19:09:32 +0000 (12:09 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Wed, 25 May 2005 00:47:05 +0000 (17:47 -0700) | ||
commit | 85976974581060716311d6807b03a671cb71cbde | |
tree | 3e10a2cd51b3f118abea32bfbcf5873337bfe2ef | tree | snapshot |
parent | bba0f401eea22ddc345df8aa32ac0ccb2c73dc15 | commit | diff |
[PATCH] Update rename/copy similarity estimator.
The second round similarity estimator simply used the size of
the xdelta itself to estimate the extent of damage. This patch
keeps that logic to detect big insertions to terminate the check
early, but otherwise looks at the generated delta in order to
estimate the extent of edit more accurately.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
The second round similarity estimator simply used the size of
the xdelta itself to estimate the extent of damage. This patch
keeps that logic to detect big insertions to terminate the check
early, but otherwise looks at the generated delta in order to
estimate the extent of edit more accurately.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Makefile | diff | blob | history | |
count-delta.c | [new file with mode: 0644] | blob |
count-delta.h | [new file with mode: 0644] | blob |
diffcore-rename.c | diff | blob | history |