Fossil SCM

The stash now uses the legacy behaviour for merge conflicts, always keeping the baseline/original/merge files, because there's otherwise a potential for undo suffering when stash pop has a conflict. (Thanks to Florian for pointing that out.)

stephan 2020-02-26 14:07 merge-remove-temp-files
Commit 31dc956dfa37931980f78b0e5dc7b3d35e0ee926d981067a357f9949aa0d641a
1 file changed +1 -1
+1 -1
--- src/stash.c
+++ src/stash.c
@@ -359,11 +359,11 @@
359359
if( isLink || isNewLink ){
360360
rc = -1;
361361
blob_zero(&b); /* because we reset it later */
362362
fossil_print("***** Cannot merge symlink %s\n", zNew);
363363
}else{
364
- rc = merge_3way(&a, zOPath, &b, &out, 0);
364
+ rc = merge_3way(&a, zOPath, &b, &out, MERGE_KEEP_FILES);
365365
blob_write_to_file(&out, zNPath);
366366
blob_reset(&out);
367367
file_setexe(zNPath, isExec);
368368
}
369369
if( rc ){
370370
--- src/stash.c
+++ src/stash.c
@@ -359,11 +359,11 @@
359 if( isLink || isNewLink ){
360 rc = -1;
361 blob_zero(&b); /* because we reset it later */
362 fossil_print("***** Cannot merge symlink %s\n", zNew);
363 }else{
364 rc = merge_3way(&a, zOPath, &b, &out, 0);
365 blob_write_to_file(&out, zNPath);
366 blob_reset(&out);
367 file_setexe(zNPath, isExec);
368 }
369 if( rc ){
370
--- src/stash.c
+++ src/stash.c
@@ -359,11 +359,11 @@
359 if( isLink || isNewLink ){
360 rc = -1;
361 blob_zero(&b); /* because we reset it later */
362 fossil_print("***** Cannot merge symlink %s\n", zNew);
363 }else{
364 rc = merge_3way(&a, zOPath, &b, &out, MERGE_KEEP_FILES);
365 blob_write_to_file(&out, zNPath);
366 blob_reset(&out);
367 file_setexe(zNPath, isExec);
368 }
369 if( rc ){
370

Keyboard Shortcuts

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