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

Function worktreeMismatchNotice

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

Source from the content-addressed store, hash-verified

140 * the agent is already reading — a multi-line block would bury the result.
141 */
142export function worktreeMismatchNotice(m: WorktreeIndexMismatch): string {
143 return (
144 `⚠ CodeGraph results below come from a different git worktree (${m.indexRoot}), ` +
145 `not where you're working (${m.worktreeRoot}) — they may reflect another branch, ` +
146 `and symbols changed only here are missing. Run "codegraph init -i" here for a ` +
147 `worktree-local index.`
148 );
149}
150
151/** Resolve symlinks where possible so tmp/realpath quirks don't break equality. */
152function realpath(p: string): string {

Callers 1

withWorktreeNoticeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected