From 10a79554d356db2c035e01cc19b6974f65fb8eae Mon Sep 17 00:00:00 2001 From: furtest Date: Fri, 30 Jan 2026 17:06:55 +0100 Subject: [PATCH] synchroniser : use prefer instead of force When doing a forced synchronisation use the prefer directive instead of force. This makes unison choose the remote version in case of conflicts only and not for every change. This allows the add subcommand to be used for adding a file to the sync (that is already present remotly) as well as adding a brand new file from the local machine (after creating it or downloading from somewhere for example). --- src/unisync/synchroniser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unisync/synchroniser.py b/src/unisync/synchroniser.py index fbf2d8f..df782bd 100644 --- a/src/unisync/synchroniser.py +++ b/src/unisync/synchroniser.py @@ -232,7 +232,7 @@ class Synchroniser: command.append(f"BelowPath {path}") if force: - command.append("-force") + command.append("-prefer") command.append(remote_root) command.append("-batch")