Skip to main content

detect_vcs

Function detect_vcs 

Source
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.