From: 9qf@758d7b174d81a134727acab9db0168c8f0782b3a <9qf@web> Date: Tue, 15 Jun 2021 12:21:19 +0000 (+0000) Subject: (no commit message) X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~91^2~228^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=85b2dbce32b9539c7611f9a7d3bf866654fb28e2;p=git-annex.git --- diff --git a/doc/forum/Data_loss_if_symlink_target_edited.mdwn b/doc/forum/Data_loss_if_symlink_target_edited.mdwn new file mode 100644 index 0000000000..9ea1ad3d6c --- /dev/null +++ b/doc/forum/Data_loss_if_symlink_target_edited.mdwn @@ -0,0 +1,7 @@ +I am syncing two repos A and B. Will the following operations cause data loss: +1. File 1 is locked in repo A, and its symlink target is edited without unlocking file 1. +2. File 1 is unlocked and editted in repo B, followed by a git-annex add operation. +3. Repo A and B are synced with git-annex sync --content +Will the editing in step 1 be lost? If so, can you please do a git fsck on the file to be overwritten to at lease give a warning. + +I am using emacs su-mode, until recently have I found that su-mode let me edit the symlink target without unlocking.