mirror of https://github.com/cheat/cheat.git
chore: add a comment
Add a small comment regarding a tricky edge-case in `gitdir.go`.
This commit is contained in:
parent
bd9fa1ba70
commit
2edc0ee299
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue