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

Function matchesDotGitPrefix

src/tools/PowerShellTool/gitSafety.ts:170–176  ·  view source on GitHub ↗
(n: string)

Source from the content-addressed store, hash-verified

168}
169
170function matchesDotGitPrefix(n: string): boolean {
171 if (n === '.git' || n.startsWith('.git/')) return true
172 // NTFS 8.3 short names: .git becomes GIT~1 (or GIT~2, etc. if multiple
173 // dotfiles start with "git"). normalizeGitPathArg lowercases, so check
174 // for git~N as the first component.
175 return /^git~\d+($|\/)/.test(n)
176}
177

Callers 1

isDotGitPathPSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected