From: Junio C Hamano Date: Fri, 02 May 2008 02:38:38 GMT Subject: Re: detecting rename->commit->modify->commit Message-ID: <7vtzhhxwep.fsf@gitster.siamese.dyndns.org> In-Reply-To: <2e24e5b90805011906g769723f0g3ffbbe6588cf23d0@mail.gmail.com> "Sitaram Chamarty" writes: > On Fri, May 2, 2008 at 2:09 AM, Teemu Likonen wrote: > >> -M" didn't detect the rename but "git diff -M4" did. To me it looks like >> this works nicely, better than I expected, actually. > > err... I didn't realise -M had an option, and I just double checked > the man pages for diff, diff-files, diff-index, and diff-tree. What > does the 4 mean? The option to -M, -C, -B/ are "raise or lower the similarity threshold to / 10^N" where N is the number of digits in . IOW, you will always be expressing number between 0 and 1. You should also be able to say -M40% but that is an ancient part of the code base so I might be misremembering things.