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

Function loadDedupIndex

lib/worktree.ts:75–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75function loadDedupIndex(): DedupIndex {
76 try {
77 const raw = fs.readFileSync(getDedupPath(), 'utf-8');
78 return JSON.parse(raw);
79 } catch {
80 return { hashes: {} };
81 }
82}
83
84function saveDedupIndex(index: DedupIndex): void {
85 const dir = path.dirname(getDedupPath());

Callers 1

harvestMethod · 0.85

Calls 1

getDedupPathFunction · 0.85

Tested by

no test coverage detected