Add bitrot detection to "diff" command

This introduces a new modifier to the output of the diff command. It
appears whenever two files being compared only differ in their content
but not in their metadata. As far as we know, under normal
circumstances, this should only ever happen if some kind of bitrot has
happened in the source file. The prerequisite for this detection to work
is that the right-side snapshot of the comparison has been created with
"backup --force".
This commit is contained in:
Daniel Danner
2024-01-06 20:12:47 +01:00
committed by Michael Eischer
parent 634e2a46d9
commit a7dc18e697
3 changed files with 22 additions and 1 deletions
+2 -1
View File
@@ -201,7 +201,8 @@ change
+------------------+--------------------------------------------------------------+
| ``modifier`` | Type of change, a concatenation of the following characters: |
| | "+" = added, "-" = removed, "T" = entry type changed, |
| | "M" = file content changed, "U" = metadata changed |
| | "M" = file content changed, "U" = metadata changed, |
| | "?" = bitrot detected |
+------------------+--------------------------------------------------------------+
statistics