[][src]Function detect_git_service::detect

pub fn detect<P: AsRef<Path>>(path: P) -> Result<GitService, Error>

Detect Git hosting service from a file path. Path can be both file path and directory path. It returns an error when input was invalid or no service was detected.