Fossil SCM

Treat whitespace at the end of lines as significant during a merge.

drh 2011-03-01 19:04 trunk
Commit 1d93222627a3be27face3d8f3da2068e9226c1ea
1 file changed +2 -2
+2 -2
--- src/merge3.c
+++ src/merge3.c
@@ -168,12 +168,12 @@
168168
** is the number of lines of text to copy directly from the pivot,
169169
** the second integer is the number of lines of text to omit from the
170170
** pivot, and the third integer is the number of lines of text that are
171171
** inserted. The edit array ends with a triple of 0,0,0.
172172
*/
173
- aC1 = text_diff(pPivot, pV1, 0, 0, 1);
174
- aC2 = text_diff(pPivot, pV2, 0, 0, 1);
173
+ aC1 = text_diff(pPivot, pV1, 0, 0, 0);
174
+ aC2 = text_diff(pPivot, pV2, 0, 0, 0);
175175
if( aC1==0 || aC2==0 ){
176176
free(aC1);
177177
free(aC2);
178178
return -1;
179179
}
180180
--- src/merge3.c
+++ src/merge3.c
@@ -168,12 +168,12 @@
168 ** is the number of lines of text to copy directly from the pivot,
169 ** the second integer is the number of lines of text to omit from the
170 ** pivot, and the third integer is the number of lines of text that are
171 ** inserted. The edit array ends with a triple of 0,0,0.
172 */
173 aC1 = text_diff(pPivot, pV1, 0, 0, 1);
174 aC2 = text_diff(pPivot, pV2, 0, 0, 1);
175 if( aC1==0 || aC2==0 ){
176 free(aC1);
177 free(aC2);
178 return -1;
179 }
180
--- src/merge3.c
+++ src/merge3.c
@@ -168,12 +168,12 @@
168 ** is the number of lines of text to copy directly from the pivot,
169 ** the second integer is the number of lines of text to omit from the
170 ** pivot, and the third integer is the number of lines of text that are
171 ** inserted. The edit array ends with a triple of 0,0,0.
172 */
173 aC1 = text_diff(pPivot, pV1, 0, 0, 0);
174 aC2 = text_diff(pPivot, pV2, 0, 0, 0);
175 if( aC1==0 || aC2==0 ){
176 free(aC1);
177 free(aC2);
178 return -1;
179 }
180

Keyboard Shortcuts

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