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

3 messages from 2013-07-05 to 2013-07-05. Participants: Fraser Tweedale, Junio C Hamano.
Thread: https://gitlist.dev/t/34351

## Fraser Tweedale, 2013-07-05 08:42

Subject: [PATCH] diff-options: document default similarity index
Message-ID: <1373013737-2448-1-git-send-email-frase@frase.id.au>
URL: https://gitlist.dev/e/1373013737-2448-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 a85288f..d6e4db4 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

```

## Junio C Hamano, 2013-07-05 09:00

Subject: Re: [PATCH] diff-options: document default similarity index
Message-ID: <7vbo6h8jpj.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vbo6h8jpj.fsf%40alter.siamese.dyndns.org
In-Reply-To: <1373013737-2448-1-git-send-email-frase@frase.id.au>

```
Fraser Tweedale <frase@frase.id.au> writes:

> 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.

Is it?  I am not sure if it is worth it.

```

## Fraser Tweedale, 2013-07-05 10:00

Subject: Re: [PATCH] diff-options: document default similarity index
Message-ID: <20130705100012.GR2457@bacardi.hollandpark.frase.id.au>
URL: https://gitlist.dev/e/20130705100012.GR2457%40bacardi.hollandpark.frase.id.au
In-Reply-To: <7vbo6h8jpj.fsf@alter.siamese.dyndns.org>

```
On Fri, Jul 05, 2013 at 02:00:40AM -0700, Junio C Hamano wrote:
> Fraser Tweedale <frase@frase.id.au> writes:
> 
> > 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.
> 
> Is it?  I am not sure if it is worth it.

The -M description goes on at some length to explain how to specify
a particular value.  Surely a brief mention of the default value is
also warranted, especially since the pointer to gitdiffcore(7) for a
more detailed explanation of the options appears quite a way below.

```
