Skip to content

avc diff-current

Shows what’s different between a snapshot and the files currently on disk. Same JSON shape as avc diff.

Terminal window
avc diff-current snap-abc123
avc diff-current snap-abc123 --json
  • “What did I change since my last snapshot?” — compare against your most recent snapshot
  • “What would change if I restored?” — see the impact before running avc restore
  • VSCode Source Control — the extension calls this to populate the SCM panel

Identical to avc diff but with to_snapshot set to "working-tree":

{
"from_snapshot": "snap-abc123",
"to_snapshot": "working-tree",
"files": [
{
"path": "src/auth.go",
"type": "modified",
"old_hash": "abc...",
"new_hash": null,
"lines_added": 3,
"lines_removed": 1,
"diff_preview": "+ new line"
}
]
}

The new_hash is null because the working-tree file isn’t (necessarily) in the object store yet.