Re: [PATCH] Detect renames in diff family.
- From
Nicolas Pitre <nico@cam.org>
- Date
- May 19, 2005, 18:58 UTC
- Message-ID
- <Pine.LNX.4.62.0505191456040.20274@localhost.localdomain>
- In-Reply-To
- <7vsm0jyryf.fsf@assigned-by-dhcp.cox.net>
On Thu, 19 May 2005, Junio C Hamano wrote:
Show 15 quoted lines
> >>>>> "NP" == Nicolas Pitre <nico@cam.org> 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