MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / saveManifest

Function saveManifest

src/git/shadow.ts:42–45  ·  view source on GitHub ↗
(rootDir: string, points: RestorePoint[])

Source from the content-addressed store, hash-verified

40}
41
42async function saveManifest(rootDir: string, points: RestorePoint[]): Promise<void> {
43 const dataPath = await ensureDataDir(rootDir);
44 await writeFile(join(dataPath, "restore-points.json"), JSON.stringify(points, null, 2));
45}
46
47export async function createRestorePoint(rootDir: string, files: string[], message: string): Promise<RestorePoint> {
48 const normalizedRoot = resolve(rootDir);

Callers 1

createRestorePointFunction · 0.85

Calls 1

ensureDataDirFunction · 0.85

Tested by

no test coverage detected