MCPcopy
hub / github.com/codeaashu/claude-code / recordFileHistorySnapshot

Function recordFileHistorySnapshot

src/utils/sessionStorage.ts:1476–1486  ·  view source on GitHub ↗
(
  messageId: UUID,
  snapshot: FileHistorySnapshot,
  isSnapshotUpdate: boolean,
)

Source from the content-addressed store, hash-verified

1474}
1475
1476export async function recordFileHistorySnapshot(
1477 messageId: UUID,
1478 snapshot: FileHistorySnapshot,
1479 isSnapshotUpdate: boolean,
1480) {
1481 await getProject().insertFileHistorySnapshot(
1482 messageId,
1483 snapshot,
1484 isSnapshotUpdate,
1485 )
1486}
1487
1488export async function recordAttributionSnapshot(
1489 snapshot: AttributionSnapshotMessage,

Callers 3

fileHistoryTrackEditFunction · 0.85
fileHistoryMakeSnapshotFunction · 0.85
copyFileHistoryForResumeFunction · 0.85

Calls 2

getProjectFunction · 0.85

Tested by

no test coverage detected