author | Junio C Hamano <junkio@cox.net> | |
Fri, 3 Mar 2006 06:11:25 +0000 (22:11 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 3 Mar 2006 06:12:33 +0000 (22:12 -0800) | ||
commit | 1706306a54cfb5f1bf65f2b054aab2a5a7dba8e7 | |
tree | bdbcdf6d3b00771cd7d0b8c01d421bef47b30cdc | tree | snapshot |
parent | e29e1147e485654d90a0ea0fd5fb7151bb194265 | commit | diff |
diffcore-rename: similarity estimator fix.
The "similarity" logic was giving added material way too much
negative weight. What we wanted to see was how similar the
post-change image was compared to the pre-change image, so the
natural definition of similarity is how much common things are
there, relative to the post-change image's size.
This simplifies things a lot.
Signed-off-by: Junio C Hamano <junkio@cox.net>
The "similarity" logic was giving added material way too much
negative weight. What we wanted to see was how similar the
post-change image was compared to the pre-change image, so the
natural definition of similarity is how much common things are
there, relative to the post-change image's size.
This simplifies things a lot.
Signed-off-by: Junio C Hamano <junkio@cox.net>
diffcore-rename.c | diff | blob | history |