git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] diff-options: document default similarity index

From
Fraser Tweedale <frase@frase.id.au>
Date
Jun 24, 2013, 11:17 UTC
Message-ID
<1372072632-27313-1-git-send-email-frase@frase.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
Next: Ramkumar Ramachandra
Message 1 of 2 in “diff-options: document default similarity index”
  1. diff-options: document default similarity indexFraser Tweedale, Jun 24, 2013
  2. Ramkumar RamachandraJun 24, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.