summaryrefslogtreecommitdiff
path: root/diff-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'diff-helper.c')
-rw-r--r--diff-helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/diff-helper.c b/diff-helper.c
index 4da2614..2dd6bda 100644
--- a/diff-helper.c
+++ b/diff-helper.c
@@ -4,6 +4,7 @@
#include "cache.h"
#include "strbuf.h"
#include "diff.h"
+#include "diffcore.h" /* just for MAX_SCORE */
static const char *pickaxe = NULL;
static int line_termination = '\n';
@@ -77,6 +78,7 @@ int main(int ac, const char **av) {
if (status == 'R' || status == 'C') {
two_paths = 1;
sscanf(cp, "%d", &score);
+ score = score * MAX_SCORE / 100;
if (line_termination) {
cp = strchr(cp,
inter_name_termination);