From 0b155e8df3205aebf129091b517f4116665a5adc Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 23:53:54 +0200 Subject: main excludes checked with the defaults' case and fold; Latin-1 decoding memory; hardlink election documented --- docs/design.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs') 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 -- cgit v1.3