diff options
Diffstat (limited to 'docs/design.md')
| -rw-r--r-- | docs/design.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/design.md b/docs/design.md index c9ebe50..ef52d7e 100644 --- a/docs/design.md +++ b/docs/design.md @@ -279,7 +279,10 @@ by size. Only groups of two or more are hashed: first the first and last 64 KiB, then SHA-256 of the whole file. Empty files are never duplicates. Two names for the same file — the same device and inode, as a hardlink creates — are never duplicates of each other; they may still both be -duplicates of a separate identical file. +duplicates of a separate identical file. The original is elected once for +all identical content, so a scanned file whose hardlink under a DIR is +elected is that original, and not a duplicate, even when the DIR also +holds a separate copy. The **original** in each group is, in order of preference: a file under one of the given DIRs, then the oldest by mtime, then the shortest name, then |
