Skip to main content

scan_project_with_git

Function scan_project_with_git 

Source
pub fn scan_project_with_git(
    root: &Path,
    opts: ScanProjectOptions,
    git: &dyn GitCapabilities,
) -> ScanResult
Expand description

Run a full scan using caller-supplied Git data.

Embedders normally call scan_project. Tests and hosts that already virtualize Git can use this entry point to keep scanner behavior deterministic without depending on ambient process state.