From: Nicolas Pitre Date: Thu, 19 May 2005 18:58:05 GMT Subject: Re: [PATCH] Detect renames in diff family. Message-ID: In-Reply-To: <7vsm0jyryf.fsf@assigned-by-dhcp.cox.net> On Thu, 19 May 2005, Junio C Hamano wrote: > >>>>> "NP" == Nicolas Pitre writes: > > NP> On Thu, 19 May 2005, Junio C Hamano wrote: > >> - the command line interface "-M" to read "-M" or "-M[0-9]" > >> (one digit); -M defaults to -M5 and give the cut-off point at > >> similarity score 5000, -M9 at 9000, etc. > > NP> Why not a fractional value instead? -M1 is 100% the same while -M.95 > NP> allows for some 5% changes. > > We are essentially saying the same thing. Internally diff core > uses score between 0 and 10000 but single digit proposed above > or fractional both hides that from the user by normalizing the > scale to something less arbitrary (in my case 0-9 in your case > 0-1.0). Yes, but 0-9 is putting a bound on the accuracy. What if someone wants not more than 2% difference? Nicolas