# [PATCH] diff-options: document default similarity index

2 messages from 2013-06-24 to 2013-06-24. Participants: Fraser Tweedale, Ramkumar Ramachandra.
Thread: https://gitlist.dev/t/34262

## Fraser Tweedale, 2013-06-24 11:17

Subject: [PATCH] diff-options: document default similarity index
Message-ID: <1372072632-27313-1-git-send-email-frase@frase.id.au>
URL: https://gitlist.dev/e/1372072632-27313-1-git-send-email-frase%40frase.id.au

```
The default similarity index of 50% is documented in gitdiffcore(7)
but it is worth also mentioning it in the description of the
-M/--find-renames option.

Signed-off-by: Fraser Tweedale <frase@frase.id.au>
---
 Documentation/diff-options.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index b8a9b86..69bb3a6 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -333,7 +333,7 @@ endif::git-log[]
 	a fraction, with a decimal point before it.  I.e., `-M5` becomes
 	0.5, and is thus the same as `-M50%`.  Similarly, `-M05` is
 	the same as `-M5%`.  To limit detection to exact renames, use
-	`-M100%`.
+	`-M100%`.  The default similarity index is 50%.
 
 -C[<n>]::
 --find-copies[=<n>]::
-- 
1.8.3.1

```

## Ramkumar Ramachandra, 2013-06-24 16:27

Subject: Re: [PATCH] diff-options: document default similarity index
Message-ID: <CALkWK0k7VZxKx5OMvPE1wJ5qDxDp7BVVah8ajbmuhkvP+geLQQ@mail.gmail.com>
URL: https://gitlist.dev/e/CALkWK0k7VZxKx5OMvPE1wJ5qDxDp7BVVah8ajbmuhkvP%2BgeLQQ%40mail.gmail.com
In-Reply-To: <1372072632-27313-1-git-send-email-frase@frase.id.au>

```
Fraser Tweedale wrote:
> The default similarity index of 50% is documented in gitdiffcore(7)
> but it is worth also mentioning it in the description of the
> -M/--find-renames option.

Looks good from a quick look at diffcore.h:

#define DEFAULT_RENAME_SCORE 30000 /* rename/copy similarity minimum (50%) */

```
