Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/colbymchenry/codegraph
/ worktree-detection.test.ts
File
worktree-detection.test.ts
__tests__/worktree-detection.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* Git worktree index-mismatch detection (issue #155).
3
*
4
* A CodeGraph index is resolved by walking up to the nearest `.codegraph/`.
Callers
nothing calls this directly
Calls
15
detectWorktreeIndexMismatch
Function · 0.90
gitWorktreeRoot
Function · 0.90
worktreeMismatchWarning
Function · 0.90
gitCommonDir
Function · 0.90
real
Function · 0.85
addSubmodule
Function · 0.85
addBareGitlink
Function · 0.85
join
Method · 0.80
initSync
Method · 0.80
setDefaultProjectHint
Method · 0.80
execute
Method · 0.80
setDefaultCodeGraph
Method · 0.80
Tested by
no test coverage detected