IsDotGitName reports whether name is `.git` or its 8.3 NTFS short alias `git~1`, case-insensitively. Both are forbidden as path components (and as submodule names) because they refer to the repository's own metadata directory. File names that do not conform to the 8.3 format (up to eight characters
(name string)
| 13 | // the `C:` drive by default — which means that `git~1/` is a valid |
| 14 | // way to refer to `.git/`. |
| 15 | func IsDotGitName(name string) bool { |
| 16 | switch strings.ToLower(name) { |
| 17 | case ".git", "git~1": |
| 18 | return true |
| 19 | } |
| 20 | return false |
| 21 | } |
no outgoing calls
searching dependent graphs…