clarify -M without % symbol in diff-options
Signed-off-by: Sitaram Chamarty <sitaramc@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Sitaram Chamarty committed
Dec 18, 2012 at 16:17 UTC
31d66aa4084cb292b15cfdcd6ff73f22f45ab9af
1 file changed
+5
-1
Documentation/diff-options.txt
+5
-1
@@ -308,7 +308,11 @@ endif::git-log[]
308
index (i.e. amount of addition/deletions compared to the
309
file's size). For example, `-M90%` means git should consider a
310
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%`.
316
317
-C[<n>]::
318
--find-copies[=<n>]::