(n: string)
| 122 | } |
| 123 | |
| 124 | function matchesGitInternalPrefix(n: string): boolean { |
| 125 | if (n === 'head' || n === '.git') return true |
| 126 | if (n.startsWith('.git/') || /^git~\d+($|\/)/.test(n)) return true |
| 127 | for (const p of GIT_INTERNAL_PREFIXES) { |
| 128 | if (p === 'head') continue |
| 129 | if (n === p || n.startsWith(p + '/')) return true |
| 130 | } |
| 131 | return false |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * True if arg (raw PS arg text) resolves to a git-internal path in cwd. |
no outgoing calls
no test coverage detected