Last reviewed
Correct answer: C. A snapshot of that one file's contents as they are now
Explanation
The principle — the snapshot is narrow and it is taken just in time.
Why the key is correct — Anthropic states that before Claude edits a file, it snapshots the current contents. That is what a later restore puts back, which is why the mechanism is precise about which file and which moment.
Why the others are wrong — a whole-tree copy is broader than what happens, and expecting one leads to expecting unrelated changes to return. A log of activity is not a restore point. And git is not involved, so tracking status changes nothing.
Remember this — it saves the file it is about to change, not the state of everything around it.
Sources — Anthropic's How Claude Code works.
Sources
“Before Claude edits a file, it snapshots the current contents.”
Practise 10 questions on this topic
Take Claude Code Basics — Timed Test 2 (10 questions) — scored instantly, explanation for every question, no login.