Return ``'git'``, ``'svn'``, or ``'none'`` based on VCS markers at *root*.
(root: Path)
| 193 | |
| 194 | |
| 195 | def detect_vcs(root: Path) -> str: |
| 196 | """Return ``'git'``, ``'svn'``, or ``'none'`` based on VCS markers at *root*.""" |
| 197 | if (root / ".git").exists(): |
| 198 | return "git" |
| 199 | if (root / ".svn").exists(): |
| 200 | return "svn" |
| 201 | return "none" |
| 202 | |
| 203 | |
| 204 | def find_project_root( |
no outgoing calls
no test coverage detected