mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-10 02:11:36 -10:00
- Scan the temporary index that the capture writes, never the shared one, so a concurrent process cannot roll entries back into a snapshot. - Sweep abandoned temporary indexes by the creation time in their name; a hard link keeps the store index's old mtime while in use. - Rebuild the index only when Git itself reports it unreadable, and install the source index atomically instead of deleting first. - Record a tracked file replaced by an embedded repository as a gitlink. - Drop exclude mirroring, which changed how source negations apply. - Keep step cancellation responsive while the start snapshot is captured. - Restore checkouts before removals so one failed removal cannot block the rest. - Rename internals: objects.pack (not compact), withTemporaryIndex, lastCaptures, attemptCapture, canBatchRestore, pendingSnapshot; fold the capture's seed into ignores.