Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LegacyCodeHQ/clarity-cli
/ resolveSymlinks
Function
resolveSymlinks
vcs/git/git_commit_content_reader.go:48–54 ·
view source on GitHub ↗
(path string)
Source
from the content-addressed store, hash-verified
46
}
47
48
func
resolveSymlinks(path string) string {
49
resolved, err := filepath.EvalSymlinks(path)
50
if
err != nil {
51
return
path
52
}
53
return
resolved
54
}
Callers
9
getRelativePath
Function · 0.70
TestGetCommonDir_Primary
Function · 0.70
TestGetCommonDir_LinkedWorktree
Function · 0.70
TestGetGitDir_PrimaryEqualsCommon
Function · 0.70
TestGetGitDir_LinkedDiffersFromCommon
Function · 0.70
TestListWorktrees_PrimaryOnly
Function · 0.70
TestListWorktrees_PrimaryAndLinked
Function · 0.70
TestListWorktrees_DetachedHead
Function · 0.70
IsPrimaryWorktree
Function · 0.70
Calls
no outgoing calls
Tested by
7
TestGetCommonDir_Primary
Function · 0.56
TestGetCommonDir_LinkedWorktree
Function · 0.56
TestGetGitDir_PrimaryEqualsCommon
Function · 0.56
TestGetGitDir_LinkedDiffersFromCommon
Function · 0.56
TestListWorktrees_PrimaryOnly
Function · 0.56
TestListWorktrees_PrimaryAndLinked
Function · 0.56
TestListWorktrees_DetachedHead
Function · 0.56