]> git.ipfire.org Git - thirdparty/git.git/commit - diffcore-rename.c
[PATCH] Update rename/copy similarity estimator.
authorJunio C Hamano <junkio@cox.net>
Tue, 24 May 2005 19:09:32 +0000 (12:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 25 May 2005 00:47:05 +0000 (17:47 -0700)
commit85976974581060716311d6807b03a671cb71cbde
tree3e10a2cd51b3f118abea32bfbcf5873337bfe2ef
parentbba0f401eea22ddc345df8aa32ac0ccb2c73dc15
[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>
Makefile
count-delta.c [new file with mode: 0644]
count-delta.h [new file with mode: 0644]
diffcore-rename.c