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