Leave empty files out of report and trees (closes #178)
check / check (push) Successful in 4m48s
check / check (push) Successful in 4m48s
Removing an empty file frees nothing, yet every `.gitkeep`, `__init__.py` and empty log formed one `report` group, and directories holding only empty files were reported as 0-byte duplicate trees. Now `report` writes no group of size 0 and `trees` writes no group whose trees hold 0 bytes. An empty file still counts toward the digest of a tree that holds other files. No option, as approved on the issue. The README's definition-of-done test now expects `empty1` and `empty2` nowhere. Model: opus-5-5
This commit is contained in:
1 parent
202f083cc0
commit
e35b260596
7 files changed
+79
-14
No files matched your search
@@ -29,6 +29,10 @@
|
||||
Newest first. An entry ends with its date and its issue or branch, where those
|
||||
are known.
|
||||
|
||||
- `report` and `trees` leave out empty files. `report` writes no group of size
|
||||
0, and `trees` writes no group whose trees hold 0 bytes. An empty file still
|
||||
counts toward a tree's digest (2026-11-11,
|
||||
https://git.eeqj.de/sneak/sfdupes/issues/178)
|
||||
- The Go code moved out of the repository root. `cmd/sfdupes/main.go` is the
|
||||
command, and it calls `Main` in the package `internal/sfdupes`. `main.go`
|
||||
became `internal/sfdupes/cli.go`. Every other file kept its name. The install
|
||||
|
||||
Reference in new issue
Block a user