Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
rename detection with -M100 means "exact renames only".
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 0391e8c42336cda9c83eeb1b9ac8f1378e4a43f9..0f839c11b7efef344d8f695842ce48120c565a68 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-853,6
+853,10
@@
static int parse_num(const char **cp_p)
}
*cp_p = cp;
+ /* special case: -M100 would mean 1.0 not 0.1 */
+ if (num == 100 && scale == 1000)
+ return MAX_SCORE;
+
/* user says num divided by scale and we say internally that
* is MAX_SCORE * num / scale.
*/