Re: [PATCH] diffcore-rename: favour identical basenames
- From
Johannes Sixt <j.sixt@eudaptics.com>
- Date
- Jun 22, 2007, 07:17 UTC
- Message-ID
- <467B777D.C47BFE0E@eudaptics.com>
- In-Reply-To
- <Pine.LNX.4.64.0706220214250.4059@racer.site>
Johannes Schindelin wrote:
> The dangerous thing is that the score can get negative now. > ... > + score = (int)(src_copied * MAX_SCORE / max_size) > + - levenshtein(src->path, dst->path);
Does that also mean that you can't ever have a rename with a score of 100%?
(I haven't studied the algorithms and assume that levenshtein(a,b) == 0 only if a==b, and that without the -levenshtein(...) the score can grow to 100%.)
-- Hannes