(n: string)
| 168 | } |
| 169 | |
| 170 | function 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 |