Re: [PATCH] Detect renames in diff family.
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 19, 2005, 18:46 UTC
- Message-ID
- <7vsm0jyryf.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.62.0505191426000.20274@localhost.localdomain>
>>>>> "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).