chore: add a comment

Add a small comment regarding a tricky edge-case in `gitdir.go`.
This commit is contained in:
Christopher Allen Lane 2022-08-28 06:54:29 -04:00
parent bd9fa1ba70
commit 2edc0ee299
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ func GitDir(path string) (bool, error) {
2. A cheatpath is a repository 2. A cheatpath is a repository
3. A cheatpath is a repository, and contains a `.git*` file 3. A cheatpath is a repository, and contains a `.git*` file
4. A cheatpath is a submodule 4. A cheatpath is a submodule
5. A cheatpath is a hidden directory
Care must be taken to support the above on both Unix and Windows Care must be taken to support the above on both Unix and Windows
systems, which have different directory separators and line-endings. systems, which have different directory separators and line-endings.