scan_repo_controlled

Function scan_repo_controlled 

Source
pub fn scan_repo_controlled(
    root: &Path,
    options: &ScanOptions,
    limits: ScanLimits,
    control: &IndexWorkControl,
) -> FsResult<Vec<Node>>
Expand description

Scan a repository with explicit resource and cooperative-stop controls.

The scan hashes current file bytes exactly. Cancellation, elapsed deadlines, and resource failures discard all staged nodes instead of returning a partial repository view.

ยงErrors

Returns an error when the root is invalid, filesystem metadata cannot be read, cancellation or the deadline is observed, or a scan limit is exceeded.