threads / patch / 34262

patchdiff-options: document default similarity index

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

## tl;dr

2 messages between Jun 24, 2013 and Jun 24, 2013. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Fraser Tweedale· Jun 24, 2013, 11:17 UTC · lore

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(-)
Show changes to Documentation/diff-options.txt +1 −1
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· Jun 24, 2013, 16:27 UTC · re: Fraser Tweedale · lore

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

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%) */

← back to recent threads