(m: WorktreeIndexMismatch)
| 124 | |
| 125 | /** One-line-per-fact warning describing a detected mismatch. */ |
| 126 | export 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 |
no outgoing calls
no test coverage detected