MCPcopy
hub / github.com/claude-code-best/claude-code / getAttributionRepoRoot

Function getAttributionRepoRoot

src/utils/commitAttribution.ts:83–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 * Falls back to getOriginalCwd() if git root can't be determined.
82 */
83export function getAttributionRepoRoot(): string {
84 const cwd = getCwd()
85 return findGitRoot(cwd) ?? getOriginalCwd()
86}
87
88// Cache for repo classification result. Primed once per process.
89// 'internal' = remote matches INTERNAL_MODEL_REPOS allowlist

Callers 8

normalizeFilePathFunction · 0.85
expandFilePathFunction · 0.85
getGitDiffSizeFunction · 0.85
isFileDeletedFunction · 0.85
getStagedFilesFunction · 0.85
isGitTransientStateFunction · 0.85

Calls 2

getCwdFunction · 0.85
getOriginalCwdFunction · 0.85

Tested by

no test coverage detected