MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getCachedRepository

Function getCachedRepository

src/utils/detectRepository.ts:68–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 * Callers construct github.com URLs, so GHE hosts are filtered out here.
67 */
68export function getCachedRepository(): string | null {
69 const parsed = repositoryWithHostCache.get(getCwd())
70 if (!parsed || parsed.host !== 'github.com') return null
71 return `${parsed.owner}/${parsed.name}`
72}
73
74/**
75 * Parses a git remote URL into host, owner, and name components.

Callers 1

fetchSingleFileGitDiffFunction · 0.85

Calls 2

getCwdFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected