What
Git's index is the file that records what is staged for the next commit. With the core.splitIndex setting, git stores the index in two files instead of one. Claude Code now handles this case when it takes a snapshot of your repository and after it applies or restores changes.
- A helper that runs after git apply or restore now reports
maybeSplit. This is set when files were processed and the index shows a split-index marker, and also when the check itself hits an error. Before, the helper returned nothing. - When the copied index may be split, the snapshot code runs
git update-index --no-split-indexto merge it back into one file. If that fails, the snapshot stops with the error "could not fold the copied index whole". - The snapshot now reads the current commit (HEAD) before it processes unmerged entries, which are files with unresolved merge conflicts. Before, it read HEAD afterwards.
Why
In repositories that use core.splitIndex, snapshots and restores work from the full index instead of only part of it. If the index cannot be merged back into one file, the snapshot now fails with an error.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
The finding does not say when Claude Code takes these git snapshots.