/cg diff
Compares two backups.
Syntax
/cg diff
[--content] [--file ] [--max-lines N] [--ignore-whitespace]
Default behavior (fast)
- Structural diff using meta.json only
- Shows lists of:
- added files
- removed files
- changed files
Options
-
--content
Reads payload content for changed files and prints a simple unified diff -
--file
Diff content for a single file only (relative unix path) -
--max-lines N
Limits printed diff lines (clamped to 20..2000, default 200) -
--ignore-whitespace
Normalizes trailing spaces and tabs before diff (does NOT remove indentation)
Safety limits (config.yml)
-
diff.content.maxFiles
Max number of files to print content diff for (when --content is used without --file) -
diff.content.maxBytesPerFile
If either side exceeds this size, content diff is skipped for that file
Binary handling
- If a file looks binary (NUL byte or invalid UTF-8), content diff prints only size change