{"version":"2.1.282","anchor":"git-snapshots-now-pass-ignore-cache-tree-to-write-tree","canonical_anchor":"git-snapshots-now-pass-ignore-cache-tree-to-write-tree","heading":"Git snapshots are built from your current files, not Git's cached summary","tier":"internal","area":"Git","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282\/e\/git-snapshots-now-pass-ignore-cache-tree-to-write-tree","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282","markdown":"### Git snapshots are built from your current files, not Git's cached summary\n\nClaude Code's Git snapshots now tell Git to ignore its cached summary of folders and build the snapshot from the files themselves\n\n**Unclear.** It is not clear which Claude Code feature uses these snapshots.\n\n**What**\n\nClaude Code takes Git snapshots of your work at certain points. In two places, it now runs `git write-tree --ignore-cache-tree` instead of plain `git write-tree`. Git keeps a cached summary of folder contents to speed things up, and this flag makes it rebuild the snapshot from the list of files instead of trusting that summary. Other snapshot paths in Claude Code already used this flag.\n\n**Why**\n\nIn practice, a snapshot now matches the files actually recorded even if Git's cached summary is out of date.\n\n- Area: Git\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}