MCPcopy Create free account
hub / github.com/anus-dev/ANUS / createFileSnapshot

Method createFileSnapshot

packages/core/src/services/gitService.ts:108–113  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

106 }
107
108 async createFileSnapshot(message: string): Promise<string> {
109 const repo = this.shadowGitRepository;
110 await repo.add('.');
111 const commitResult = await repo.commit(message);
112 return commitResult.commit;
113 }
114
115 async restoreProjectFromSnapshot(commitHash: string): Promise<void> {
116 const repo = this.shadowGitRepository;

Callers 1

saveRestorableToolCallsFunction · 0.80

Calls 1

addMethod · 0.80

Tested by

no test coverage detected