MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / worktreeMismatchWarning

Function worktreeMismatchWarning

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

Source from the content-addressed store, hash-verified

124
125/** One-line-per-fact warning describing a detected mismatch. */
126export function worktreeMismatchWarning(m: WorktreeIndexMismatch): string {
127 return (
128 `This CodeGraph index belongs to a different git working tree.\n` +
129 ` Running in: ${m.worktreeRoot}\n` +
130 ` Index from: ${m.indexRoot}\n` +
131 `Results reflect that tree's code (often a different branch), not this worktree — ` +
132 `symbols changed only here are missing. Run "codegraph init -i" in this worktree ` +
133 `for a worktree-local index.`
134 );
135}
136
137/**
138 * 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