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

Function worktreeMismatchNotice

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

Source from the content-addressed store, hash-verified

244 * explore` and `codegraph node` CLI.
245 */
246export 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. */
255function realpath(p: string): string {

Callers 2

withWorktreeNoticeMethod · 0.90

Calls 1

worktreeIndexAdviceFunction · 0.85

Tested by

no test coverage detected