In direct mode, files with the same key are no longer hardlinked, as that would cause a surprising behavior if modifying one, where the other would also change.

This commit is contained in:
Joey Hess 2013-01-14 11:56:37 -04:00
parent 36cb19b4e6
commit 85c564ea94
4 changed files with 20 additions and 6 deletions

View file

@ -12,10 +12,19 @@
When switching to direct mode, both symlinks should be replaced by a copy (or at least a hardlink) of the actual file.
> The typo that caused this bug is fixed. --[[Joey]]
#What version of git-annex are you using? On what operating system?
3.20130107 on Arch Linux x64
#Please provide any additional information below.
The deduplication performed by git-annex is very dangerous in itself because files with identical content become replaced by references to the same file without the user necessarily being aware. Think of the user making a copy of a file, than modifying it. He would expect to end up with two files, the unchanged original and the modified copy. But what he really gets is two symlinks pointing to the same modified file.
The deduplication performed by git-annex is very dangerous in itself
because files with identical content become replaced by references to the
same file without the user necessarily being aware. Think of the user
making a copy of a file, than modifying it. He would expect to end up with
two files, the unchanged original and the modified copy. But what he really
gets is two symlinks pointing to the same modified file.
> I agree, it now copies rather than hard linking. [[done]] --[[Joey]]