From: Johannes Sixt Date: Fri, 22 Jun 2007 07:17:17 GMT Subject: Re: [PATCH] diffcore-rename: favour identical basenames Message-ID: <467B777D.C47BFE0E@eudaptics.com> In-Reply-To: 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