[PATCH] Do not expose internal scaling to diff-helper.
Instead we can normalize what diff-raw records at the diffcore side. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1a0756ffe4
commit
903d475a0b
@ -4,7 +4,6 @@
|
||||
#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';
|
||||
@ -78,7 +77,6 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user