MCPcopy
hub / github.com/colbymchenry/codegraph / worktreeMismatchWarning

Function worktreeMismatchWarning

src/sync/worktree.ts:121–130  ·  view source on GitHub ↗
(m: WorktreeIndexMismatch)

Source from the content-addressed store, hash-verified

119
120/** One-line-per-fact warning describing a detected mismatch. */
121export function worktreeMismatchWarning(m: WorktreeIndexMismatch): string {
122 return (
123 `This CodeGraph index belongs to a different git working tree.\n` +
124 ` Running in: ${m.worktreeRoot}\n` +
125 ` Index from: ${m.indexRoot}\n` +
126 `Results reflect that tree's code (often a different branch), not this worktree — ` +
127 `symbols changed only here are missing. Run "codegraph init -i" in this worktree ` +
128 `for a worktree-local index.`
129 );
130}
131
132/**
133 * Compact, single-line variant for prefixing a tool's result. Read tools

Callers 3

handleStatusMethod · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected