pub fn detect_vcs(path: &Path) -> Result<(VcsBackend, PathBuf)>Expand description
Detect the VCS backend for a path, without running any subprocesses.
Checks the path itself, then walks up ancestors. Returns the backend type and the repo root path.
pub fn detect_vcs(path: &Path) -> Result<(VcsBackend, PathBuf)>Detect the VCS backend for a path, without running any subprocesses.
Checks the path itself, then walks up ancestors. Returns the backend type and the repo root path.