Skip to content

Commit 31d66aa

Browse files
sitaramcgitster
authored andcommitted
clarify -M without % symbol in diff-options
Signed-off-by: Sitaram Chamarty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bdd478d commit 31d66aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Documentation/diff-options.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,11 @@ endif::git-log[]
308308
index (i.e. amount of addition/deletions compared to the
309309
file's size). For example, `-M90%` means git should consider a
310310
delete/add pair to be a rename if more than 90% of the file
311-
hasn't changed.
311+
hasn't changed. Without a `%` sign, the number is to be read as
312+
a fraction, with a decimal point before it. I.e., `-M5` becomes
313+
0.5, and is thus the same as `-M50%`. Similarly, `-M05` is
314+
the same as `-M5%`. To limit detection to exact renames, use
315+
`-M100%`.
312316

313317
-C[<n>]::
314318
--find-copies[=<n>]::

0 commit comments

Comments
 (0)