(m: WorktreeIndexMismatch)
| 244 | * explore` and `codegraph node` CLI. |
| 245 | */ |
| 246 | export function worktreeMismatchNotice(m: WorktreeIndexMismatch): string { |
| 247 | return ( |
| 248 | `⚠ CodeGraph results below come from a different git worktree (${m.indexRoot}), ` + |
| 249 | `not where you're working (${m.worktreeRoot}) — they may reflect another branch, ` + |
| 250 | `and symbols changed only here are missing. ${worktreeIndexAdvice('agent')}` |
| 251 | ); |
| 252 | } |
| 253 | |
| 254 | /** Resolve symlinks where possible so tmp/realpath quirks don't break equality. */ |
| 255 | function realpath(p: string): string { |
no test coverage detected