mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 03:09:51 +00:00
Implement snapshot diff command
Add fsnap diff <old> <new> that compares two snapshots and reports added (A), deleted (D), metadata changed (M), permissions changed (P), and symlink target changed (L) records. Both snapshots are loaded into memory, sorted by path using qsort, and merged with a two-pointer algorithm. Residual records after the merge are emitted as A or D. Escape sequences in paths are decoded on output. Also add GetTime accessor, set errno on load_in_memory failures for meaningful error messages, and fix unused-variable warnings.
This commit is contained in:
@@ -7,4 +7,6 @@ char *resolve_path(const char *path);
|
||||
|
||||
int copy(const char *src, const char *dst);
|
||||
|
||||
int count_lines(const char *file);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user