MCPcopy
hub / github.com/garrytan/gstack / saveDedupIndex

Function saveDedupIndex

lib/worktree.ts:84–90  ·  view source on GitHub ↗
(index: DedupIndex)

Source from the content-addressed store, hash-verified

82}
83
84function saveDedupIndex(index: DedupIndex): void {
85 const dir = path.dirname(getDedupPath());
86 fs.mkdirSync(dir, { recursive: true });
87 const tmp = getDedupPath() + '.tmp';
88 fs.writeFileSync(tmp, JSON.stringify(index, null, 2));
89 fs.renameSync(tmp, getDedupPath());
90}
91
92// --- WorktreeManager ---
93

Callers 1

harvestMethod · 0.85

Calls 1

getDedupPathFunction · 0.85

Tested by

no test coverage detected