File: Data_loss_if_symlink_target_edited.mdwn

package info (click to toggle)
git-annex 10.20250416-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 73,572 kB
  • sloc: haskell: 90,656; javascript: 9,103; sh: 1,469; makefile: 211; perl: 137; ansic: 44
file content (7 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
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.