Fossil SCM

Adjust the alignment similarity cutoff score.

drh 2012-02-06 14:28 UTC diff-experimental
Commit 9713e42356d07c7d963bbc43f309d78e552fc7ed
1 file changed +1 -1
+1 -1
--- src/diff.c
+++ src/diff.c
@@ -634,11 +634,11 @@
634634
m = a[i]+50;
635635
d = 1;
636636
}
637637
if( m>p ){
638638
int score = match_dline(&aLeft[j-1], &aRight[i-1]);
639
- if( score<50 && m>p+score ){
639
+ if( score<66 && m>p+score ){
640640
m = p+score;
641641
d = 2;
642642
}
643643
}
644644
p = a[i];
645645
--- src/diff.c
+++ src/diff.c
@@ -634,11 +634,11 @@
634 m = a[i]+50;
635 d = 1;
636 }
637 if( m>p ){
638 int score = match_dline(&aLeft[j-1], &aRight[i-1]);
639 if( score<50 && m>p+score ){
640 m = p+score;
641 d = 2;
642 }
643 }
644 p = a[i];
645
--- src/diff.c
+++ src/diff.c
@@ -634,11 +634,11 @@
634 m = a[i]+50;
635 d = 1;
636 }
637 if( m>p ){
638 int score = match_dline(&aLeft[j-1], &aRight[i-1]);
639 if( score<66 && m>p+score ){
640 m = p+score;
641 d = 2;
642 }
643 }
644 p = a[i];
645

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button