You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 10d5bcb
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(workspace): hand the snapshot's index to the command (#100)
Every command that reads the working copy opened the record index again
after its snapshot, and saving a revision opened it once more, through
the annotations, to check whether the change diverged.
The snapshot now reads the index once and hands it to the command in
`WorkingCopy`. Saving adds the records it just wrote with `Index::add`,
so the index knows the new revision as one read afterwards would,
without reading it again. Divergence is checked against that index, and
the annotations are only opened when the change did diverge.
This is groundwork for workspaces: later in the stack, the snapshot also
uses this index to tell whether the working copy's change moved on
without it.
> [!NOTE]
> Written by Claude Opus 5.5 in Claude Code (via T3 Code)
0 commit comments