pub fn scan_repo_controlled_with_work(
root: &Path,
options: &ScanOptions,
limits: ScanLimits,
control: &IndexWorkControl,
) -> FsResult<ScanOutcome>Expand description
Scan a repository with explicit controls and report the admitted work.
The scan hashes current file bytes exactly. Cancellation, elapsed deadlines, and resource failures discard all staged nodes and work 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.